2018-09-17 01:25:33 +02:00
|
|
|
error: replacing an `Option` with `None`
|
2019-01-13 13:55:26 +01:00
|
|
|
--> $DIR/mem_replace.rs:18:13
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let _ = mem::replace(&mut an_option, None);
|
2018-10-06 18:18:06 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::mem-replace-option-with-none` implied by `-D warnings`
|
2018-09-17 01:25:33 +02:00
|
|
|
|
2018-09-19 01:54:01 +02:00
|
|
|
error: replacing an `Option` with `None`
|
2019-01-13 13:55:26 +01:00
|
|
|
--> $DIR/mem_replace.rs:20:13
|
2018-09-19 01:54:01 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let _ = mem::replace(an_option, None);
|
2018-09-19 01:54:01 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-09-17 01:25:33 +02:00
|
|
|
|