Skip to content

Commit

Permalink
conditional arc
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Nov 14, 2024
1 parent 01a4266 commit a785c76
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/polars-core/src/frame/column/series.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::ops::{Deref, DerefMut};
use std::sync::Arc;

use super::Series;

Expand All @@ -12,7 +11,7 @@ pub struct SeriesColumn {
inner: Series,

#[cfg(debug_assertions)]
materialized_at: Option<Arc<std::backtrace::Backtrace>>,
materialized_at: Option<std::sync::Arc<std::backtrace::Backtrace>>,
}

impl SeriesColumn {
Expand All @@ -25,7 +24,9 @@ impl SeriesColumn {
materialized_at: if std::env::var("POLARS_TRACK_SERIES_MATERIALIZATION").as_deref()
== Ok("1")
{
Some(Arc::new(std::backtrace::Backtrace::force_capture()))
Some(std::sync::Arc::new(
std::backtrace::Backtrace::force_capture(),
))
} else {
None
},
Expand Down

0 comments on commit a785c76

Please sign in to comment.