1
0
Fork 0

Remove redundant clone

This commit is contained in:
Daniele Tricoli 2021-12-14 16:31:36 +01:00
parent 296f41325a
commit 5d9e8075d2
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ fn build_ui(command: Arc<RwLock<Command>>, port: &str) {
Command::Quit => gtk::main_quit(),
Command::Custom(_) => {
if let Some(path) = command.to_path() {
let _ = tx.send(path.clone());
let _ = tx.send(path);
}
}
}