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:25:23 -05:00 committed by GitHub
parent aa6bf1f90d
commit 9751cba2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,12 +79,20 @@ declare_clippy_lint! {
/// impl Drop for Droppable {
/// fn drop(&mut self) {}
/// }
/// let _ = Droppable;
/// {
/// let _ = Droppable;
/// // ^ dropped here
/// /* more code */
/// }
/// ```
///
/// Good:
/// ```rust,ignore
/// let _droppable = Droppable;
/// {
/// let _droppable = Droppable;
/// /* more code */
/// // dropped at end of scope
/// }
/// ```
pub LET_UNDERSCORE_DROP,
correctness,