diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-03-25 08:37:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 08:37:36 +0000 |
| commit | 0ff7fad3dae8c29f986bc4c8a04b2a6efce98b0b (patch) | |
| tree | 8a9b0c1525117ed0a4eb60ca0808ab721ad3a99f | |
| parent | 9c6cb5150f4c47c0673f2bc0bdd5ac1c654f0efb (diff) | |
| parent | 517766c9740d54ac0778bc78225edb63647dc0e1 (diff) | |
| download | rust-0ff7fad3dae8c29f986bc4c8a04b2a6efce98b0b.tar.gz rust-0ff7fad3dae8c29f986bc4c8a04b2a6efce98b0b.zip | |
Use `code` for references to other lints in as_conversions docs (#14283)
changelog: none
| -rw-r--r-- | clippy_lints/src/as_conversions.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/clippy_lints/src/as_conversions.rs b/clippy_lints/src/as_conversions.rs index 78102772927..27e304a848e 100644 --- a/clippy_lints/src/as_conversions.rs +++ b/clippy_lints/src/as_conversions.rs @@ -12,17 +12,17 @@ declare_clippy_lint! { /// regardless of whether good alternatives exist or not. If you want more /// precise lints for `as`, please consider using these separate lints: /// - /// - clippy::cast_lossless - /// - clippy::cast_possible_truncation - /// - clippy::cast_possible_wrap - /// - clippy::cast_precision_loss - /// - clippy::cast_sign_loss - /// - clippy::char_lit_as_u8 - /// - clippy::fn_to_numeric_cast - /// - clippy::fn_to_numeric_cast_with_truncation - /// - clippy::ptr_as_ptr - /// - clippy::unnecessary_cast - /// - invalid_reference_casting + /// - `clippy::cast_lossless` + /// - `clippy::cast_possible_truncation` + /// - `clippy::cast_possible_wrap` + /// - `clippy::cast_precision_loss` + /// - `clippy::cast_sign_loss` + /// - `clippy::char_lit_as_u8` + /// - `clippy::fn_to_numeric_cast` + /// - `clippy::fn_to_numeric_cast_with_truncation` + /// - `clippy::ptr_as_ptr` + /// - `clippy::unnecessary_cast` + /// - `invalid_reference_casting` /// /// There is a good explanation the reason why this lint should work in this /// way and how it is useful [in this |
