mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
375 B
Text
11 lines
375 B
Text
error: called `Option::take()` on a temporary value
|
|
--> $DIR/needless_option_take.rs:12:5
|
|
|
|
|
LL | x.as_ref().take();
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `x.as_ref()`
|
|
|
|
|
= note: `-D clippy::needless-option-take` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_option_take)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|