This adds the `retain` function to the Map type which calls the inner
maps, Either indexmap or std BTreeMap's, retain.
I'm trying to mutate a Value::Object's Map in-place and could't find a
nice way without the retain function.
error: consider adding a `;` to the last statement for consistent formatting
--> tests/../src/lexical/float.rs:111:9
|
111 | round_to_native::<F, _>(self, algorithm)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `round_to_native::<F, _>(self, algorithm);`
|
= note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
error: consider adding a `;` to the last statement for consistent formatting
--> tests/../src/lexical/math.rs:616:9
|
616 | iadd_impl(x, y, 0)
| ^^^^^^^^^^^^^^^^^^ help: add a `;` here: `iadd_impl(x, y, 0);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
error: consider adding a `;` to the last statement for consistent formatting
--> tests/../src/lexical/math.rs:862:9
|
862 | self.ishl(n as usize)
| ^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.ishl(n as usize);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
error: consider adding a `;` to the last statement for consistent formatting
--> tests/../src/lexical/math.rs:868:9
|
868 | small::imul_pow5(self.data_mut(), n)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `small::imul_pow5(self.data_mut(), n);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
error: consider adding a `;` to the last statement for consistent formatting
--> tests/lexical/float.rs:184:5
|
184 | check_round_to_f64(10234494226754558294, -1086, 2498655817078750, -1074)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `check_round_to_f64(10234494226754558294, -1086, 2498655817078750, -1074);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
error: this expression borrows a reference (`&lexical::float::ExtendedFloat`) that is immediately dereferenced by the compiler
--> tests/../src/lexical/algorithm.rs:136:45
|
136 | u64::error_is_accurate::<F>(errors, &fp)
| ^^^ help: change this to: `fp`
|
= note: `-D clippy::needless-borrow` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: field is never read: `map`
--> tests/test.rs:2233:9
|
2233 | map: BTreeMap<MyMapKey, ()>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default