Make clippy happy

This commit is contained in:
Mikayla Maki 2022-08-11 15:47:56 -07:00
parent 804c4c512b
commit e2200109e6
3 changed files with 1 additions and 6 deletions

View file

@ -301,7 +301,6 @@ struct WindowState {
previous_modifiers_changed_event: Option<Event>,
}
#[derive(Debug)]
struct InsertText {
replacement_range: Option<Range<usize>>,
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| {

View file

@ -243,7 +243,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode) -> Option<String> {
}
}
Some(keystroke.key.to_string())
None
}
/// Code Modifiers

View file

@ -5,7 +5,6 @@
"requires": true,
"packages": {
"": {
"name": "styles",
"version": "1.0.0",
"license": "ISC",
"dependencies": {