about summary refs log tree commit diff
path: root/clippy_lints/src/casts
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2022-08-11 19:42:16 +0200
committerPhilipp Krones <hello@philkrones.com>2022-08-11 19:42:16 +0200
commitdc29cfb8d5338af23e6b06aaff6cc0229e688da0 (patch)
treefa40202be0b823c66362915e3aa6a877578368d1 /clippy_lints/src/casts
parentf719599c0f8eedc504ddedfcbb9e196128b8b129 (diff)
downloadrust-dc29cfb8d5338af23e6b06aaff6cc0229e688da0.tar.gz
rust-dc29cfb8d5338af23e6b06aaff6cc0229e688da0.zip
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
Diffstat (limited to 'clippy_lints/src/casts')
-rw-r--r--clippy_lints/src/casts/cast_abs_to_unsigned.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/casts/cast_abs_to_unsigned.rs b/clippy_lints/src/casts/cast_abs_to_unsigned.rs
index 64ea326b75a..6426e8c25ac 100644
--- a/clippy_lints/src/casts/cast_abs_to_unsigned.rs
+++ b/clippy_lints/src/casts/cast_abs_to_unsigned.rs
@@ -37,7 +37,7 @@ pub(super) fn check(
             span,
             &format!("casting the result of `{cast_from}::abs()` to {cast_to}"),
             "replace with",
-            format!("{}.unsigned_abs()", Sugg::hir(cx, &args[0], "..")),
+            format!("{}.unsigned_abs()", Sugg::hir(cx, &args[0], "..").maybe_par()),
             Applicability::MachineApplicable,
         );
     }