We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e949d12 commit 837fba8Copy full SHA for 837fba8
ext/polars/src/series/mod.rs
@@ -63,6 +63,13 @@ pub fn mark_series(marker: &gc::Marker, series: &Series) {
63
64
impl DataTypeFunctions for RbSeries {
65
fn mark(&self, marker: &gc::Marker) {
66
- mark_series(marker, &self.series.borrow());
+ // this is not ideal, as objects will not be marked if unable to borrow
67
+ // this should never happen, but log for now to avoid panic,
68
+ // as most series will not use Object datatype
69
+ if let Ok(s) = &self.series.try_borrow() {
70
+ mark_series(marker, s);
71
+ } else {
72
+ eprintln!("[polars] Could not borrow!");
73
+ }
74
}
75
0 commit comments