Update clippy_lints/src/let_underscore.rs

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Samuel E. Moelius 2020-11-08 17:24:55 -05:00 committed by GitHub
parent 9c6a0b9c34
commit aa6bf1f90d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ impl<'tcx> LateLintPass<'tcx> for LetUnderscore {
cx,
LET_UNDERSCORE_DROP,
local.span,
"non-binding let on a type that implements `Drop`",
"non-binding `let` on a type that implements `Drop`",
None,
"consider using an underscore-prefixed named \
binding or dropping explicitly with `std::mem::drop`"