rust-clippy/tests/ui/needless_option_take.stderr
2023-08-11 14:02:28 +00:00

10 lines
291 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`
error: aborting due to previous error