refactor: clean up using clippy
This commit is contained in:
parent
0bf50a27a2
commit
8eb0259961
|
@ -1,6 +1,4 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::fs::File;
|
|
||||||
use std::io::prelude::*;
|
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
|
|
|
@ -40,7 +40,6 @@ pub async fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<
|
||||||
_ => {
|
_ => {
|
||||||
if app.editing {
|
if app.editing {
|
||||||
app.input.handle_event(&Event::Key(key_event));
|
app.input.handle_event(&Event::Key(key_event));
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,8 +62,8 @@ pub async fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let output = Command::new("mpv")
|
Command::new("mpv")
|
||||||
.arg(format!("{}", url))
|
.arg(url)
|
||||||
.output()
|
.output()
|
||||||
.expect("Failed to execute `mpv`");
|
.expect("Failed to execute `mpv`");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue