diff options
| author | xFrednet <xFrednet@gmail.com> | 2022-05-07 16:49:19 +0200 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2022-05-07 17:39:21 +0200 |
| commit | 03960ebab26a1b1d2d43540f47aca6670bdc1e54 (patch) | |
| tree | 329e2e7b0b06e83e37e9b3ff3623ae69af1a6133 /clippy_utils/src/source.rs | |
| parent | 9c78883fdf5ccdeef833bc99095a18dcf6312d0b (diff) | |
| download | rust-03960ebab26a1b1d2d43540f47aca6670bdc1e54.tar.gz rust-03960ebab26a1b1d2d43540f47aca6670bdc1e54.zip | |
Replace `#[allow]` with `#[expect]` in Clippy
Diffstat (limited to 'clippy_utils/src/source.rs')
| -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 c69a3d8d2a1..04ef2f57447 100644 --- a/clippy_utils/src/source.rs +++ b/clippy_utils/src/source.rs @@ -137,7 +137,7 @@ pub fn position_before_rarrow(s: &str) -> Option<usize> { } /// Reindent a multiline string with possibility of ignoring the first line. -#[allow(clippy::needless_pass_by_value)] +#[expect(clippy::needless_pass_by_value)] pub fn reindent_multiline(s: Cow<'_, str>, ignore_first: bool, indent: Option<usize>) -> Cow<'_, str> { let s_space = reindent_multiline_inner(&s, ignore_first, indent, ' '); let s_tab = reindent_multiline_inner(&s_space, ignore_first, indent, '\t'); |
