diff --git a/.gitignore b/.gitignore index 03f2cede..1417d84d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ **/*.rs.bk .idea/ -.vscode/ \ No newline at end of file +.vscode/ diff --git a/cli/src/main.rs b/cli/src/main.rs index 620c13d0..89930987 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -3,7 +3,9 @@ mod util; use std::{ ops::Deref, - time::{Duration, Instant}, thread, sync::mpsc, + sync::mpsc, + thread, + time::{Duration, Instant}, }; use async_std::{fs::OpenOptions, sync::Arc}; @@ -288,11 +290,12 @@ async fn main() -> eyre::Result<()> { let (sender, receiver) = mpsc::channel(); let _clipboard_init_thread = thread::spawn(move || { match sender.send( - ClipboardContext::new().map_err(|err| { - log::warn!("Failed to initialize clipboard support: {}", err); - }) - .ok() - ){ + ClipboardContext::new() + .map_err(|err| { + log::warn!("Failed to initialize clipboard support: {}", err); + }) + .ok(), + ) { Ok(()) => {}, // everything good Err(_) => {}, // we have been released, don't panic } @@ -307,7 +310,6 @@ async fn main() -> eyre::Result<()> { None }, }; - let concat_file_name = |file_path: &Path, file_name: Option<_>| { // TODO this has gotten out of hand (it ugly)