Skip to content

Commit

Permalink
chore(rust): Remove unused symbols and uneeded mut qualifier (#5672)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjerphan committed Nov 30, 2022
1 parent 5dd687e commit e904217
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion polars/polars-core/src/frame/hash_join/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,9 @@ mod test {
.unwrap();
// create a new cache
reset_string_cache();
let sc = IUseStringCache::new();

// _sc is needed to ensure we hold the string cache.
let _sc = IUseStringCache::new();

df_b.try_apply("bar", |s| s.cast(&DataType::Categorical(None)))
.unwrap();
Expand Down
1 change: 0 additions & 1 deletion polars/polars-lazy/src/tests/queries.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use polars_arrow::prelude::QuantileInterpolOptions;
use polars_core::frame::explode::MeltArgs;
use polars_core::series::ops::NullBehavior;
use polars_core::utils::concat_df;
use polars_time::prelude::DateMethods;

use super::*;
Expand Down
2 changes: 0 additions & 2 deletions polars/polars-lazy/src/tests/streaming.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use polars_core::prelude::JoinType::AsOf;

use super::*;

fn get_csv_file() -> LazyFrame {
Expand Down
2 changes: 1 addition & 1 deletion polars/polars-time/src/groupby/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ mod test {
let groups = Series::new("groups", ["a", "a", "a", "b", "b", "a", "a"]);
let df = DataFrame::new(vec![range, groups.clone()]).unwrap();

let (mut time_key, mut keys, groups) = df
let (mut time_key, keys, _groups) = df
.groupby_dynamic(
vec![groups],
&DynamicGroupOptions {
Expand Down

0 comments on commit e904217

Please sign in to comment.