Skip to content

Commit 61455a8

Browse files
committed
Clippy & cleanup
1 parent ddc7b4c commit 61455a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

partiql-parser/src/parse/partiql.lalrpop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,14 +1924,14 @@ PuncSepStar<P, T>: Vec<T> = {
19241924

19251925
// This is a macro; see http://lalrpop.github.io/lalrpop/tutorial/006_macros.html
19261926
PuncSepPlus<P, T>: Vec<T> = {
1927-
<mut v:(<T> <P>)*> <e:T> => {
1927+
<v:(<T> <P>)*> <e:T> => {
19281928
v.into_iter().map(|t|t.0).chain(std::iter::once(e)).collect()
19291929
}
19301930
}
19311931

19321932
// This is a macro; see http://lalrpop.github.io/lalrpop/tutorial/006_macros.html
19331933
PuncSep2Plus<P, T>: Vec<T> = {
1934-
<mut v:(<T> <P>)+> <e:T> => {
1934+
<v:(<T> <P>)+> <e:T> => {
19351935
v.into_iter().map(|t|t.0).chain(std::iter::once(e)).collect()
19361936
}
19371937
}

partiql/benches/bench_eval_multi_like.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ fn employee_data() -> Vec<Value> {
239239

240240
// seed the rng with a known value to assure same data across runs
241241
let mut rng = rand::rngs::StdRng::from_seed([42; 32]);
242-
use rand::distributions::Distribution;
243-
let chars = rand::distributions::Alphanumeric;
244-
let random_size = rand::distributions::uniform::Uniform::from(5..=100);
242+
use rand::distr::Distribution;
243+
let chars = rand::distr::Alphanumeric;
244+
let random_size = rand::distr::uniform::Uniform::new_inclusive(5, 100).expect("rand");
245245

246246
// add random string prefix and suffix to each combined name
247247
let employee_data: Vec<Value> = combined

0 commit comments

Comments
 (0)