Skip to content

Commit

Permalink
fix some warnings that occur in certain feature activations
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Nov 14, 2021
1 parent 4e6dea0 commit 95f9408
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use crate::series::arithmetic::checked::NumOpsDispatchChecked;
use crate::series::implementations::SeriesWrap;
use ahash::RandomState;
use arrow::array::ArrayRef;
#[cfg(feature = "object")]
use std::any::Any;
use std::borrow::Cow;
use std::ops::Deref;
Expand Down
4 changes: 3 additions & 1 deletion polars/polars-lazy/src/dsl.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
//! Domain specific language for the Lazy api.
use crate::logical_plan::Context;
use crate::prelude::*;
use crate::utils::{expr_to_root_column_name, has_expr, has_wildcard};
#[cfg(feature = "is_in")]
use crate::utils::expr_to_root_column_name;
use crate::utils::{has_expr, has_wildcard};
use polars_core::export::arrow::{array::BooleanArray, bitmap::MutableBitmap};
use polars_core::prelude::*;

Expand Down
2 changes: 2 additions & 0 deletions polars/polars-lazy/src/logical_plan/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ fn expand_dtypes(expr: &Expr, result: &mut Vec<Expr>, schema: &Schema, dtypes: &
}
}

// schema is not used if regex not activated
#[allow(unused_variables)]
fn prepare_excluded(expr: &Expr, schema: &Schema) -> Vec<Arc<str>> {
let mut exclude = vec![];
expr.into_iter().for_each(|e| {
Expand Down
4 changes: 4 additions & 0 deletions polars/polars-lazy/src/physical_plan/executors/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ pub struct JoinExec {
right_on: Vec<Arc<dyn PhysicalExpr>>,
parallel: bool,
suffix: Option<String>,
// not used if asof not activated
#[allow(dead_code)]
asof_by_left: Vec<String>,
// not used if asof not activated
#[allow(dead_code)]
asof_by_right: Vec<String>,
}

Expand Down

0 comments on commit 95f9408

Please sign in to comment.