From c84bec85956d8556737a6327a0d7e97c3442382b Mon Sep 17 00:00:00 2001 From: Willians Faria Date: Thu, 9 May 2024 00:30:31 -0300 Subject: [PATCH] style: fixing clippy issues --- reqtui/src/text_object/text_object.rs | 4 ---- tui/src/components/api_explorer/req_editor.rs | 2 -- 2 files changed, 6 deletions(-) diff --git a/reqtui/src/text_object/text_object.rs b/reqtui/src/text_object/text_object.rs index 83e3d36..46f04ce 100644 --- a/reqtui/src/text_object/text_object.rs +++ b/reqtui/src/text_object/text_object.rs @@ -179,7 +179,3 @@ impl std::fmt::Display for TextObject { f.write_str(&self.content.to_string()) } } - -fn is_separator(c: char) -> bool { - c.is_whitespace() || matches!(c, '.' | '/' | '\'' | '"') -} diff --git a/tui/src/components/api_explorer/req_editor.rs b/tui/src/components/api_explorer/req_editor.rs index df381ec..92641e6 100644 --- a/tui/src/components/api_explorer/req_editor.rs +++ b/tui/src/components/api_explorer/req_editor.rs @@ -105,7 +105,6 @@ pub struct ReqEditor<'a> { editor_mode: EditorMode, row_scroll: usize, layout: ReqEditorLayout, - buffered_keys: String, } impl<'a> ReqEditor<'a> { @@ -137,7 +136,6 @@ impl<'a> ReqEditor<'a> { editor_mode: EditorMode::Normal, row_scroll: 0, layout: build_layout(size), - buffered_keys: String::default(), } }