2022-05-05 15:12:52 +01:00
|
|
|
error: called `Option::take()` on a temporary value
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/needless_option_take.rs:12:5
|
2022-05-05 15:12:52 +01:00
|
|
|
|
|
|
|
|
LL | x.as_ref().take();
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `x.as_ref()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-option-take` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_option_take)]`
|
2022-05-05 15:12:52 +01:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-05-05 15:12:52 +01:00
|
|
|
|