Ignore clippy's erroneous warnings (#895)

This commit is contained in:
JT 2022-01-30 16:12:41 -05:00 committed by GitHub
parent 1fd0ddb52c
commit a51d45b99d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -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())

View file

@ -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())