f8f144117d
This implements a machine applicable suggestion to any matched usage of `.as_ref().take()``
8 lines
125 B
Rust
8 lines
125 B
Rust
// run-rustfix
|
|
|
|
fn main() {
|
|
println!("Testing option_take_on_temporary");
|
|
let x = Some(3);
|
|
let y = x.as_ref();
|
|
}
|