From 44ea384ee59fafb76882e1d6687bc4cbc6d61611 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 30 Oct 2023 10:22:00 +0800 Subject: chore: remove unnecessary clippy macros --- src/repl/abort.rs | 1 - src/repl/handler.rs | 3 --- src/repl/highlighter.rs | 1 - src/repl/prompt.rs | 1 - 4 files changed, 6 deletions(-) (limited to 'src/repl') diff --git a/src/repl/abort.rs b/src/repl/abort.rs index 5377f43..f76abb6 100644 --- a/src/repl/abort.rs +++ b/src/repl/abort.rs @@ -5,7 +5,6 @@ use std::sync::{ pub type SharedAbortSignal = Arc; -#[allow(clippy::module_name_repetitions)] pub struct AbortSignal { ctrlc: AtomicBool, ctrld: AtomicBool, diff --git a/src/repl/handler.rs b/src/repl/handler.rs index 35a57da..bafad14 100644 --- a/src/repl/handler.rs +++ b/src/repl/handler.rs @@ -27,7 +27,6 @@ pub enum ReplCmd { ReadFile(String), } -#[allow(clippy::module_name_repetitions)] pub struct ReplCmdHandler { config: SharedConfig, abort: SharedAbortSignal, @@ -35,7 +34,6 @@ pub struct ReplCmdHandler { } impl ReplCmdHandler { - #[allow(clippy::unnecessary_wraps)] pub fn init(config: SharedConfig, abort: SharedAbortSignal) -> Result { let clipboard = Clipboard::new().map(RefCell::new); Ok(Self { @@ -135,7 +133,6 @@ impl ReplCmdHandler { } } -#[allow(clippy::module_name_repetitions)] pub struct ReplyStreamHandler { sender: Sender, buffer: String, diff --git a/src/repl/highlighter.rs b/src/repl/highlighter.rs index b1ec023..103d198 100644 --- a/src/repl/highlighter.rs +++ b/src/repl/highlighter.rs @@ -5,7 +5,6 @@ use reedline::{Highlighter, StyledText}; const MATCH_COLOR: Color = Color::Green; -#[allow(clippy::module_name_repetitions)] pub struct ReplHighlighter { external_commands: Vec, config: SharedConfig, diff --git a/src/repl/prompt.rs b/src/repl/prompt.rs index f48ce64..94b7123 100644 --- a/src/repl/prompt.rs +++ b/src/repl/prompt.rs @@ -9,7 +9,6 @@ const PROMPT_MULTILINE_COLOR: nu_ansi_term::Color = nu_ansi_term::Color::LightBl const INDICATOR_COLOR: Color = Color::Cyan; const PROMPT_RIGHT_COLOR: Color = Color::AnsiValue(5); -#[allow(clippy::module_name_repetitions)] #[derive(Clone)] pub struct ReplPrompt { config: SharedConfig, -- cgit v1.2.3