Addressed points raised in review.

This commit is contained in:
Alexander Regueiro
2019-03-10 17:19:47 +00:00
parent d43966a176
commit d2b85323ad
13 changed files with 44 additions and 48 deletions

View File

@@ -26,8 +26,7 @@ declare_clippy_lint! {
/// ```
pub ASSERTIONS_ON_CONSTANTS,
style,
"`assert!(true)` / `assert!(false)` will be optimized out by the compiler, \
and should probably be replaced by a `panic!()` or `unreachable!()`"
"`assert!(true)` / `assert!(false)` will be optimized out by the compiler, and should probably be replaced by a `panic!()` or `unreachable!()`"
}
pub struct AssertionsOnConstants;