diff options
| author | Eduardo Pinho <enet4mikeenet@gmail.com> | 2019-02-18 14:14:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-18 14:14:54 +0000 |
| commit | 74ac35bcabc9cc88ab881d89e7b066f42e9e96a2 (patch) | |
| tree | 917c435fa18fb0bffa5e43c81e72ba766749e623 | |
| parent | 1620e92dd6a59b9663a7085d28134f0201f94596 (diff) | |
| download | rust-74ac35bcabc9cc88ab881d89e7b066f42e9e96a2.tar.gz rust-74ac35bcabc9cc88ab881d89e7b066f42e9e96a2.zip | |
Update why transmute_int_to_float is bad
Fix #3550
| -rw-r--r-- | clippy_lints/src/transmute.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/transmute.rs b/clippy_lints/src/transmute.rs index 56e1aa4a4e1..4ce54f9f87c 100644 --- a/clippy_lints/src/transmute.rs +++ b/clippy_lints/src/transmute.rs @@ -159,7 +159,7 @@ declare_clippy_lint! { /// **What it does:** Checks for transmutes from an integer to a float. /// -/// **Why is this bad?** This might result in an invalid in-memory representation of a float. +/// **Why is this bad?** Transmutes are dangerous and error-prone, whereas `from_bits` is intuitive and safe. /// /// **Known problems:** None. /// |
