11 lines
359 B
Plaintext
11 lines
359 B
Plaintext
|
|
error: replacing an `Option` with `None`
|
||
|
|
--> $DIR/mem_replace.rs:8:13
|
||
|
|
|
|
||
|
|
8 | let _ = mem::replace(&mut an_option, None);
|
||
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
|
||
|
|
|
|
||
|
|
= note: `-D clippy::mem-replace-option-with-none` implied by `-D warnings`
|
||
|
|
|
||
|
|
error: aborting due to previous error
|
||
|
|
|