blob: bf43a18e7115cf8058622ac72129fea497fd12cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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
|