Skip to content

Commit

Permalink
fix(rust): Add missing allow macros for windows (#16130)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned authored May 9, 2024
1 parent f18c306 commit 670102e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py-polars/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ mod utils;
#[cfg(all(target_family = "unix", not(use_mimalloc), not(default_allocator)))]
use jemallocator::Jemalloc;
#[cfg(any(not(target_family = "unix"), use_mimalloc))]
#[allow(unused_imports)]
use mimalloc::MiMalloc;
use pyo3::panic::PanicException;
use pyo3::prelude::*;
Expand All @@ -65,6 +66,7 @@ use crate::functions::PyStringCacheHolder;
use crate::lazyframe::{PyInProcessQuery, PyLazyFrame};
use crate::lazygroupby::PyLazyGroupBy;
#[cfg(debug_assertions)]
#[allow(unused_imports)]
use crate::memory::TracemallocAllocator;
use crate::series::PySeries;
#[cfg(feature = "sql")]
Expand Down
1 change: 1 addition & 0 deletions py-polars/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub struct TracemallocAllocator<A: GlobalAlloc> {
impl<A: GlobalAlloc> TracemallocAllocator<A> {
/// Wrap the allocator such that allocations are registered with
/// tracemalloc.
#[allow(dead_code)]
pub const fn new(wrapped_alloc: A) -> Self {
Self { wrapped_alloc }
}
Expand Down

0 comments on commit 670102e

Please sign in to comment.