diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-01-09 18:57:00 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-01-09 18:57:00 +0100 |
| commit | d0a74af9794d077cea7ed8979071de122334e503 (patch) | |
| tree | 04334285db14632ddcee8f983af7009613c4a55e /clippy_dev | |
| parent | 0faf8c7c62377984a6c710c329852fdc2d09824e (diff) | |
| download | rust-d0a74af9794d077cea7ed8979071de122334e503.tar.gz rust-d0a74af9794d077cea7ed8979071de122334e503.zip | |
Merge commit '19e305bb57a7595f2a8d81f521c0dd8bf854e739' into clippy-subtree-update
Diffstat (limited to 'clippy_dev')
| -rw-r--r-- | clippy_dev/src/fmt.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_dev/src/fmt.rs b/clippy_dev/src/fmt.rs index c6673859282..790dafa811f 100644 --- a/clippy_dev/src/fmt.rs +++ b/clippy_dev/src/fmt.rs @@ -179,8 +179,8 @@ fn fmt_conf(check: bool) -> Result<(), Error> { #[expect(clippy::drain_collect)] fields.push(ClippyConf { name, - lints: lints.drain(..).collect(), attrs: &conf[attrs_start..attrs_end], + lints: lints.drain(..).collect(), field: conf[field_start..i].trim_end(), }); attrs_start = i; @@ -191,8 +191,8 @@ fn fmt_conf(check: bool) -> Result<(), Error> { #[expect(clippy::drain_collect)] fields.push(ClippyConf { name, - lints: lints.drain(..).collect(), attrs: &conf[attrs_start..attrs_end], + lints: lints.drain(..).collect(), field: conf[field_start..i].trim_end(), }); attrs_start = i; @@ -220,8 +220,8 @@ fn fmt_conf(check: bool) -> Result<(), Error> { } fields.push(ClippyConf { name, - lints, attrs: &conf[attrs_start..attrs_end], + lints, field: conf[field_start..].trim_end(), }); |
