mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Delete unused variable y
in test
This fixes the errors occuring while running the ui tests
This commit is contained in:
parent
cf83e18106
commit
8b2b343b23
2 changed files with 2 additions and 2 deletions
|
@ -3,5 +3,5 @@
|
|||
fn main() {
|
||||
println!("Testing option_take_on_temporary");
|
||||
let x = Some(3);
|
||||
let y = x.as_ref().take();
|
||||
x.as_ref().take();
|
||||
}
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
fn main() {
|
||||
println!("Testing option_take_on_temporary");
|
||||
let x = Some(3);
|
||||
let y = x.as_ref();
|
||||
x.as_ref();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue