diff --git a/Cargo.toml b/Cargo.toml index 4733a5dc..d1edfdd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,6 @@ pedantic = { level = "deny", priority = -1 } missing_errors_doc = "allow" missing_panics_doc = "allow" module_name_repetitions = "allow" -must_use_candidate = "allow" [workspace.lints.rustdoc] # Doc-link rot has no other discoverer: clippy does not read intra-doc diff --git a/hive-host-sock/src/lib.rs b/hive-host-sock/src/lib.rs index 8fef8d95..96d11bbe 100644 --- a/hive-host-sock/src/lib.rs +++ b/hive-host-sock/src/lib.rs @@ -487,6 +487,7 @@ pub struct LifecycleScope { impl LifecycleScope { /// True when nothing is explicitly selected — interpreted as "all /// classes" (the bare `hivectl stop` / `start` with no scope flags). + #[must_use] pub fn is_everything(&self) -> bool { !(self.agents || self.ci || self.forge || self.gateway || self.matrix) && self.agent_names.is_empty() diff --git a/hive-matrix-mcp/src/handlers.rs b/hive-matrix-mcp/src/handlers.rs index 7ec2059f..22629e3d 100644 --- a/hive-matrix-mcp/src/handlers.rs +++ b/hive-matrix-mcp/src/handlers.rs @@ -628,6 +628,7 @@ pub async fn list_room_members(client: &Client, room_ref: &str) -> DaemonRespons DaemonResponse::ok(&list) } +#[must_use] pub fn list_invites(client: &Client) -> DaemonResponse { let invites: Vec = client .invited_rooms() diff --git a/hive-priv-sock/src/lib.rs b/hive-priv-sock/src/lib.rs index 7324c248..6407c357 100644 --- a/hive-priv-sock/src/lib.rs +++ b/hive-priv-sock/src/lib.rs @@ -61,6 +61,7 @@ pub enum InfraAction { impl InfraAction { /// The `systemctl` subcommand this action maps to. + #[must_use] pub fn systemctl_verb(self) -> &'static str { match self { InfraAction::Start => "start",