mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Ignore clippy's erroneous warnings (#895)
This commit is contained in:
parent
1fd0ddb52c
commit
a51d45b99d
2 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,7 @@ impl Command for Lines {
|
|||
|
||||
let split_char = if s.contains("\r\n") { "\r\n" } else { "\n" };
|
||||
|
||||
#[allow(clippy::needless_collect)]
|
||||
let lines = s
|
||||
.split(split_char)
|
||||
.map(|s| s.to_string())
|
||||
|
|
|
@ -59,6 +59,7 @@ fn detect_columns(
|
|||
let config = stack.get_config()?;
|
||||
let input = input.collect_string("", &config)?;
|
||||
|
||||
#[allow(clippy::needless_collect)]
|
||||
let input: Vec<_> = input
|
||||
.lines()
|
||||
.skip(num_rows_to_skip.unwrap_or_default())
|
||||
|
|
Loading…
Reference in a new issue