Skip to content

Commit 38ae878

Browse files
committed
fix: CI issues - grcov installation and clippy warnings
1 parent 39f6122 commit 38ae878

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ jobs:
8787
toolchain: stable
8888

8989
- name: Install grcov
90-
run: |
91-
curl -L --output grcov.tar.gz https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.gz
92-
tar -xf grcov.tar.gz
93-
chmod +x grcov
90+
run: cargo install grcov
9491

9592
- name: Generate coverage
9693
run: |

src/database/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,7 @@ impl Database {
311311
}
312312
}
313313
);
314-
match result {
315-
Ok(conn) => Some(conn),
316-
Err(_) => None,
317-
}
314+
result.ok()
318315
};
319316

320317
let mut recent_connections = self.list_connections(None, true)?;

src/models/session.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ impl Session {
7272
}
7373

7474
#[derive(Debug, Clone, Serialize, Deserialize)]
75+
#[allow(dead_code)]
7576
pub struct SessionStats {
7677
pub total_sessions: usize,
7778
pub active_sessions: usize,

0 commit comments

Comments
 (0)