fix dogfood lint on clippy_utils

This commit is contained in:
5225225 2021-11-08 22:03:06 +00:00
parent 33822012ec
commit 96db1d6bea

View file

@ -128,7 +128,7 @@ pub fn reindent_multiline(s: Cow<'_, str>, ignore_first: bool, indent: Option<us
fn reindent_multiline_inner(s: &str, ignore_first: bool, indent: Option<usize>, ch: char) -> String { fn reindent_multiline_inner(s: &str, ignore_first: bool, indent: Option<usize>, ch: char) -> String {
let x = s let x = s
.lines() .lines()
.skip(ignore_first as usize) .skip(usize::from(ignore_first))
.filter_map(|l| { .filter_map(|l| {
if l.is_empty() { if l.is_empty() {
None None