mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +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" };
|
let split_char = if s.contains("\r\n") { "\r\n" } else { "\n" };
|
||||||
|
|
||||||
|
#[allow(clippy::needless_collect)]
|
||||||
let lines = s
|
let lines = s
|
||||||
.split(split_char)
|
.split(split_char)
|
||||||
.map(|s| s.to_string())
|
.map(|s| s.to_string())
|
||||||
|
|
|
@ -59,6 +59,7 @@ fn detect_columns(
|
||||||
let config = stack.get_config()?;
|
let config = stack.get_config()?;
|
||||||
let input = input.collect_string("", &config)?;
|
let input = input.collect_string("", &config)?;
|
||||||
|
|
||||||
|
#[allow(clippy::needless_collect)]
|
||||||
let input: Vec<_> = input
|
let input: Vec<_> = input
|
||||||
.lines()
|
.lines()
|
||||||
.skip(num_rows_to_skip.unwrap_or_default())
|
.skip(num_rows_to_skip.unwrap_or_default())
|
||||||
|
|
Loading…
Reference in a new issue