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