Skip to content

fix(core): Improve docopt performance prefiltering possible options #1109

fix(core): Improve docopt performance prefiltering possible options

fix(core): Improve docopt performance prefiltering possible options #1109

Triggered via push September 6, 2023 21:51
Status Success
Total duration 42s
Artifacts

commitlint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
explicit call to `.into_iter()` in function argument accepting `IntoIterator`: rash_core/src/docopt/mod.rs#L302
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> rash_core/src/docopt/mod.rs:302:66 | 302 | usages_iter = Box::new(usages_iter.chain(splitted.into_iter())) | ^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `splitted` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/iter/traits/iterator.rs:522:12 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
explicit call to `.into_iter()` in function argument accepting `IntoIterator`: rash_core/src/docopt/mod.rs#L302
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> rash_core/src/docopt/mod.rs:302:66 | 302 | usages_iter = Box::new(usages_iter.chain(splitted.into_iter())) | ^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `splitted` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/iter/traits/iterator.rs:522:12 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default