diff options
| author | alexey semenyuk <alexsemenyuk88@gmail.com> | 2022-06-19 14:15:14 +0000 |
|---|---|---|
| committer | alex-semenyuk <alexsemenyuk88@gmail.com> | 2022-07-17 16:13:58 +0300 |
| commit | e7804355de8bfc93b3604beec7a7c32665a305ee (patch) | |
| tree | 52312fa32c7eab4720127bcbf07295cf0dd1036c | |
| parent | b776fb82941cadfc752368901f210831d5184d95 (diff) | |
| download | rust-e7804355de8bfc93b3604beec7a7c32665a305ee.tar.gz rust-e7804355de8bfc93b3604beec7a7c32665a305ee.zip | |
NEEDLESS_OPTION_TAKE doc improvements
NEEDLESS_OPTION_TAKE doc improvements NEEDLESS_OPTION_TAKE doc improvements NEEDLESS_OPTION_TAKE doc improvements NEEDLESS_OPTION_TAKE doc improvements NEEDLESS_OPTION_TAKE doc improvements NEEDLESS_OPTION_TAKE doc improvements NEEDLESS_OPTION_TAKE doc improvements
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 9bb7bb7a7ab..4bdb5785cff 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -2225,8 +2225,12 @@ declare_clippy_lint! { } declare_clippy_lint! { + /// ### What it does + /// Checks for calling `take` function after `as_ref`. /// /// ### Why is this bad? + /// Redundant code. `take` writes `None` to its argument. + /// In this case the modification is useless as it's a temporary that cannot be read from afterwards. /// /// ### Example /// ```rust |
