From d93eca29fc5ca6bf127405f156c3bbf7b69611d2 Mon Sep 17 00:00:00 2001 From: inrustwetrust Date: Tue, 2 Feb 2016 20:38:14 +0100 Subject: [PATCH] Fix typo in drop_ref lint description. --- README.md | 2 +- src/drop_ref.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d24dc3de1bd..0c5b12df8ae 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ name [cyclomatic_complexity](https://github.com/Manishearth/rust-clippy/wiki#cyclomatic_complexity) | warn | finds functions that should be split up into multiple functions [deprecated_semver](https://github.com/Manishearth/rust-clippy/wiki#deprecated_semver) | warn | `Warn` on `#[deprecated(since = "x")]` where x is not semver [derive_hash_not_eq](https://github.com/Manishearth/rust-clippy/wiki#derive_hash_not_eq) | warn | deriving `Hash` but implementing `PartialEq` explicitly -[drop_ref](https://github.com/Manishearth/rust-clippy/wiki#drop_ref) | warn | call to `std::mem::drop` with a reference instead of an owned value, which will not not call the `Drop::drop` method on the underlying value +[drop_ref](https://github.com/Manishearth/rust-clippy/wiki#drop_ref) | warn | call to `std::mem::drop` with a reference instead of an owned value, which will not call the `Drop::drop` method on the underlying value [duplicate_underscore_argument](https://github.com/Manishearth/rust-clippy/wiki#duplicate_underscore_argument) | warn | Function arguments having names which only differ by an underscore [empty_loop](https://github.com/Manishearth/rust-clippy/wiki#empty_loop) | warn | empty `loop {}` detected [enum_variant_names](https://github.com/Manishearth/rust-clippy/wiki#enum_variant_names) | warn | finds enums where all variants share a prefix/postfix diff --git a/src/drop_ref.rs b/src/drop_ref.rs index fecb69f5c14..c15689d8cd6 100644 --- a/src/drop_ref.rs +++ b/src/drop_ref.rs @@ -20,7 +20,7 @@ use utils::{match_def_path, span_note_and_lint}; /// ``` declare_lint!(pub DROP_REF, Warn, "call to `std::mem::drop` with a reference instead of an owned value, \ - which will not not call the `Drop::drop` method on the underlying value"); + which will not call the `Drop::drop` method on the underlying value"); #[allow(missing_copy_implementations)] pub struct DropRefPass;