mirror of
https://github.com/nushell/nushell.git
synced 2024-12-18 21:21:52 +01:00
Ignore clippy's erroneous warnings (#895)
This commit is contained in:
parent
1fd0ddb52c
commit
a51d45b99d
@ -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 New Issue
Block a user