2022-04-08 13:07:19 -05:00
|
|
|
error: called `Option::take()` on a temporary value
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_option_take.rs:12:5
|
2022-04-08 13:07:19 -05:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|