diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2023-02-25 17:43:19 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2023-02-25 17:43:19 -0500 |
| commit | bc184e9c7d461439da4a0086bb912de014038865 (patch) | |
| tree | 7819d64fac38309d08e620a951ced125ac5911e9 /clippy_lints/src/casts | |
| parent | daa94d2583162a499227faa91dae474160fda460 (diff) | |
| parent | b528cc90bc35a111125bfd2382bfcdcd345cea69 (diff) | |
| download | rust-bc184e9c7d461439da4a0086bb912de014038865.tar.gz rust-bc184e9c7d461439da4a0086bb912de014038865.zip | |
Merge branch 'master' into rustup
Diffstat (limited to 'clippy_lints/src/casts')
| -rw-r--r-- | clippy_lints/src/casts/cast_possible_truncation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/casts/cast_possible_truncation.rs b/clippy_lints/src/casts/cast_possible_truncation.rs index f3f8b8d8798..823970e35ab 100644 --- a/clippy_lints/src/casts/cast_possible_truncation.rs +++ b/clippy_lints/src/casts/cast_possible_truncation.rs @@ -168,7 +168,7 @@ pub(super) fn check( let suggestion = format!("{cast_to_snip}::try_from({name_of_cast_from})"); span_lint_and_then(cx, CAST_POSSIBLE_TRUNCATION, expr.span, &msg, |diag| { - diag.help("if this is intentional allow the lint with `#[allow(clippy::cast_precision_loss)]` ..."); + diag.help("if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ..."); diag.span_suggestion_with_style( expr.span, "... or use `try_from` and handle the error accordingly", |
