Re-arrange .to_owned() placement to stop clippy from complaining
This commit is contained in:
parent
fbdea47acd
commit
70bfb11e46
1 changed files with 2 additions and 2 deletions
|
@ -85,10 +85,10 @@ async fn main() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let state_clone = initial_state.clone();
|
let state_clone = initial_state.clone();
|
||||||
let st = state_clone.record.lock().unwrap();
|
let st = state_clone.record.lock().unwrap().to_owned();
|
||||||
serde_json::to_writer(
|
serde_json::to_writer(
|
||||||
&std::fs::File::create("votes.json").unwrap(),
|
&std::fs::File::create("votes.json").unwrap(),
|
||||||
&st.to_owned(),
|
&st,
|
||||||
)
|
)
|
||||||
.expect("TODO: panic message");
|
.expect("TODO: panic message");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue