summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-11 17:45:46 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-11 17:45:46 -0500
commitbc31125d0d8e37c0f1c507b41229d5c65e210221 (patch)
treefae40f677491bdfca7f1bd5a46efaf2c04aaa11c
parent40cfe6a3c6691b0049986783f1d4e4402ee25843 (diff)
downloadnbsh-bc31125d0d8e37c0f1c507b41229d5c65e210221.tar.gz
nbsh-bc31125d0d8e37c0f1c507b41229d5c65e210221.zip
clippy
-rw-r--r--src/main.rs3
-rw-r--r--src/shell/history/mod.rs4
-rw-r--r--src/shell/mod.rs2
-rw-r--r--src/shell/readline.rs2
4 files changed, 3 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index 5c9d0b2..64685a8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,6 +11,9 @@
#![allow(clippy::too_many_arguments)]
#![allow(clippy::too_many_lines)]
#![allow(clippy::type_complexity)]
+// this isn't super relevant in a binary - if it's actually a problem, we'll
+// just get a compilation failure
+#![allow(clippy::future_not_send)]
mod env;
mod format;
diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs
index 8f4f56a..19223ec 100644
--- a/src/shell/history/mod.rs
+++ b/src/shell/history/mod.rs
@@ -19,8 +19,6 @@ impl History {
}
}
- // render always happens on the main task
- #[allow(clippy::future_not_send)]
pub async fn render(
&self,
out: &mut impl textmode::Textmode,
@@ -64,8 +62,6 @@ impl History {
Ok(())
}
- // render always happens on the main task
- #[allow(clippy::future_not_send)]
pub async fn render_fullscreen(
&self,
out: &mut impl textmode::Textmode,
diff --git a/src/shell/mod.rs b/src/shell/mod.rs
index 7371933..e9bd5de 100644
--- a/src/shell/mod.rs
+++ b/src/shell/mod.rs
@@ -149,8 +149,6 @@ impl Shell {
}
}
- // render always happens on the main task
- #[allow(clippy::future_not_send)]
pub async fn render(
&self,
out: &mut impl textmode::Textmode,
diff --git a/src/shell/readline.rs b/src/shell/readline.rs
index d4f09e7..dca33f2 100644
--- a/src/shell/readline.rs
+++ b/src/shell/readline.rs
@@ -19,8 +19,6 @@ impl Readline {
}
}
- // render always happens on the main task
- #[allow(clippy::future_not_send)]
pub async fn render(
&self,
out: &mut impl textmode::Textmode,