From 9f210e973834700d14c6c0283ed750ed5b038e8b Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 9 May 2026 23:16:24 +0300 Subject: chore: enable clippy linting --- src/api/mod.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/api/mod.rs') diff --git a/src/api/mod.rs b/src/api/mod.rs index f256e4a8..318a0ee7 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -368,7 +368,7 @@ fn output_match_read_source( ) -> crate::api::schema::ReadSource { match source { crate::api::schema::ReadSource::Recent => crate::api::schema::ReadSource::RecentUnwrapped, - other => other.clone(), + other => *other, } } @@ -741,14 +741,12 @@ impl ActiveSubscription { let probe = pane_read( format!("{request_id}:sub:{index}:probe"), &pane_id, - source.clone(), + source, lines, strip_ansi, api_tx, ); - if let Err(error) = probe { - return Err(error); - } + probe?; Ok(Self::OutputMatched(ActiveOutputMatchedSubscription { pane_id, @@ -765,11 +763,7 @@ impl ActiveSubscription { pane_id, agent_status, } => { - let probe = - match pane_get(format!("{request_id}:sub:{index}:probe"), &pane_id, api_tx) { - Ok(probe) => probe, - Err(error) => return Err(error), - }; + let probe = pane_get(format!("{request_id}:sub:{index}:probe"), &pane_id, api_tx)?; Ok(Self::AgentStatusChanged( ActiveAgentStatusChangedSubscription { -- cgit v1.2.3