From c0ed2168c6b39301511b84f52bd3f7b57a39024d Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 29 Oct 2023 15:43:03 -0700 Subject: no more warnings :) --- ci-ctl/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ci-ctl') diff --git a/ci-ctl/src/main.rs b/ci-ctl/src/main.rs index bd2f733..4f09f27 100644 --- a/ci-ctl/src/main.rs +++ b/ci-ctl/src/main.rs @@ -80,7 +80,7 @@ fn main() { match what { JobAction::List => { let db = DbCtx::new(&config_path, &db_path); - let mut conn = db.conn.lock().unwrap(); + let conn = db.conn.lock().unwrap(); let mut query = conn.prepare(ci_lib_core::sql::SELECT_ALL_RUNS_WITH_JOB_INFO).unwrap(); let mut jobs = query.query([]).unwrap(); while let Some(row) = jobs.next().unwrap() { @@ -170,7 +170,7 @@ fn main() { println!("[+] new repo created: '{}' id {}", &name, repo_id); if let Some((remote, remote_kind, config_path)) = remote_config { let full_config_file_path = format!("{}/{}", &db.config_path.display(), config_path); - let config = match remote_kind.as_ref() { + let _config = match remote_kind.as_ref() { "github" => { assert!(NotifierConfig::github_from_file(&full_config_file_path).is_ok()); } -- cgit v1.1