diff --git a/crates/tty7-core/src/host/local.rs b/crates/tty7-core/src/host/local.rs index 669b67ee..d40aa93d 100644 --- a/crates/tty7-core/src/host/local.rs +++ b/crates/tty7-core/src/host/local.rs @@ -64,6 +64,10 @@ pub struct LocalHost { } impl LocalHost { + // Hands back the `SharedHost` rather than a bare `LocalHost` because that + // is the only shape anything uses one in: a host is reached through + // `Arc`, and a caller given the struct would have to wrap it + // itself, every time, to do anything at all. #[allow(clippy::new_ret_no_self)] pub fn new() -> SharedHost { Arc::new(LocalHost { diff --git a/src/terminal/remote.rs b/src/terminal/remote.rs index a6e4523b..40874350 100644 --- a/src/terminal/remote.rs +++ b/src/terminal/remote.rs @@ -299,7 +299,6 @@ impl RemoteTerminal { } } - #[allow(clippy::too_many_arguments)] fn spawn_once( route: &PaneRoute, size: TermSize, diff --git a/src/ui/settings.rs b/src/ui/settings.rs index daa60065..d007735b 100644 --- a/src/ui/settings.rs +++ b/src/ui/settings.rs @@ -3033,6 +3033,9 @@ impl Tty7App { ) } + // Ten with `self`, against a threshold of nine. Every one is a distinct + // thing about the row being drawn, and a struct to carry them would be + // built inline at each of the call sites and read nowhere else. #[allow(clippy::too_many_arguments)] fn render_ssh_row( &self,