From 2c196f84f1124c4acafebb136d047e811ae6714a Mon Sep 17 00:00:00 2001 From: keith Date: Mon, 20 Apr 2020 18:16:45 -0700 Subject: [PATCH] format --- src/bridge/ui_commands.rs | 2 +- src/window.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bridge/ui_commands.rs b/src/bridge/ui_commands.rs index 8dca19a..77f6774 100644 --- a/src/bridge/ui_commands.rs +++ b/src/bridge/ui_commands.rs @@ -75,7 +75,7 @@ impl UiCommand { .expect("Focus Gained Failed"), UiCommand::Quit => { nvim.command("qa!").await.ok(); // Ignoring result as it won't succeed since the app closed. - }, + } UiCommand::FileDrop(path) => { nvim.command(format!("e {}", path).as_str()).await.ok(); } diff --git a/src/window.rs b/src/window.rs index 91a3840..22ea34e 100644 --- a/src/window.rs +++ b/src/window.rs @@ -437,7 +437,7 @@ pub fn ui_loop() { for event in event_pump.poll_iter() { match event { Event::Quit { .. } => window.handle_quit(), - Event::DropFile { filename, ..} => { + Event::DropFile { filename, .. } => { BRIDGE.queue_command(UiCommand::FileDrop(filename)); } Event::KeyDown {