From e2200109e61ee3f821aa746463e25cf3cb25c58d Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Thu, 11 Aug 2022 15:47:56 -0700 Subject: [PATCH] Make clippy happy --- crates/gpui/src/platform/mac/window.rs | 4 ---- crates/terminal/src/mappings/keys.rs | 2 +- styles/package-lock.json | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 35eacb6f68..60b079c266 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -301,7 +301,6 @@ struct WindowState { previous_modifiers_changed_event: Option, } -#[derive(Debug)] struct InsertText { replacement_range: Option>, text: String, @@ -757,8 +756,6 @@ extern "C" fn handle_key_event(this: &Object, native_event: id, key_equivalent: let function_is_held; window_state_borrow.pending_key_down = match event { Event::KeyDown(event) => { - dbg!(&event); - let keydown = event.keystroke.clone(); // Ignore events from held-down keys after some of the initially-pressed keys // were released. @@ -799,7 +796,6 @@ extern "C" fn handle_key_event(this: &Object, native_event: id, key_equivalent: } if !handled { - println!("not handling, {:?}", insert_text); if let Some(insert) = insert_text { handled = true; with_input_handler(this, |input_handler| { diff --git a/crates/terminal/src/mappings/keys.rs b/crates/terminal/src/mappings/keys.rs index b71aa0d312..e07a324998 100644 --- a/crates/terminal/src/mappings/keys.rs +++ b/crates/terminal/src/mappings/keys.rs @@ -243,7 +243,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode) -> Option { } } - Some(keystroke.key.to_string()) + None } /// Code Modifiers diff --git a/styles/package-lock.json b/styles/package-lock.json index 582f1c8496..5499f1852c 100644 --- a/styles/package-lock.json +++ b/styles/package-lock.json @@ -5,7 +5,6 @@ "requires": true, "packages": { "": { - "name": "styles", "version": "1.0.0", "license": "ISC", "dependencies": {