File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,13 @@ declare_clippy_lint! {
80
80
/// ### What it does
81
81
/// Checks for casts between numerical types that may
82
82
/// truncate large values. This is expected behavior, so the cast is `Allow` by
83
- /// default.
83
+ /// default. It suggests user either explicitly ignore the lint,
84
+ /// or use `try_from()` and handle the truncation, default, or panic explicitly.
84
85
///
85
86
/// ### Why is this bad?
86
87
/// In some problem domains, it is good practice to avoid
87
88
/// truncation. This lint can be activated to help assess where additional
88
- /// checks could be beneficial, and suggests implementing TryFrom trait .
89
+ /// checks could be beneficial.
89
90
///
90
91
/// ### Example
91
92
/// ```rust
You can’t perform that action at this time.
0 commit comments