summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-30 10:22:00 +0800
committersigoden <sigoden@gmail.com>2023-10-30 10:22:00 +0800
commit44ea384ee59fafb76882e1d6687bc4cbc6d61611 (patch)
tree1ca679e0eb79b75a2e01411cb00509914bec5a23 /src/repl
parent49595053f0a55571f42582ffae4e705c82f2aa00 (diff)
downloadaichat-44ea384ee59fafb76882e1d6687bc4cbc6d61611.tar.gz
chore: remove unnecessary clippy macros
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/abort.rs1
-rw-r--r--src/repl/handler.rs3
-rw-r--r--src/repl/highlighter.rs1
-rw-r--r--src/repl/prompt.rs1
4 files changed, 0 insertions, 6 deletions
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<AbortSignal>;
-#[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<Self> {
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<ReplyStreamEvent>,
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<String>,
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,