Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rust): Add missing allow macros for windows #16130

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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