refactor: clean up using clippy

This commit is contained in:
Muhammad Nauman Raza 2024-05-29 10:59:55 +01:00
parent 0bf50a27a2
commit 8eb0259961
2 changed files with 2 additions and 5 deletions

View file

@ -1,6 +1,4 @@
use serde::{Deserialize, Serialize};
use std::fs::File;
use std::io::prelude::*;
#[derive(Serialize, Deserialize, Debug)]
#[allow(non_snake_case)]

View file

@ -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`");
}