diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
| commit | 9f210e973834700d14c6c0283ed750ed5b038e8b (patch) | |
| tree | cd8c75755c59fdc47bf71ca6dc34e49ab0258ae6 /src/api/mod.rs | |
| parent | 3a9888cd564dc45d23a7bdd0dba29a6ff1ef48a1 (diff) | |
chore: enable clippy linting
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 14 |
1 files changed, 4 insertions, 10 deletions
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 { |
