diff options
| author | 5225225 <5225225@mailbox.org> | 2021-11-08 22:03:06 +0000 |
|---|---|---|
| committer | 5225225 <5225225@mailbox.org> | 2021-11-09 17:30:15 +0000 |
| commit | 96db1d6bea254b23bcda76206683d7452ff45c48 (patch) | |
| tree | 6a847d39ac06805fbe58e9a21f9fdeb81d6746b4 | |
| parent | 33822012ec905a589ef16041a051095154b995ca (diff) | |
| download | rust-96db1d6bea254b23bcda76206683d7452ff45c48.tar.gz rust-96db1d6bea254b23bcda76206683d7452ff45c48.zip | |
fix dogfood lint on clippy_utils
| -rw-r--r-- | clippy_utils/src/source.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/source.rs b/clippy_utils/src/source.rs index 7f68cc388eb..d928317259d 100644 --- a/clippy_utils/src/source.rs +++ b/clippy_utils/src/source.rs @@ -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 { let x = s .lines() - .skip(ignore_first as usize) + .skip(usize::from(ignore_first)) .filter_map(|l| { if l.is_empty() { None |
