summaryrefslogtreecommitdiff
path: root/ci-lib-core/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-10-29 15:43:03 -0700
committeriximeow <me@iximeow.net>2023-10-29 15:43:03 -0700
commitc0ed2168c6b39301511b84f52bd3f7b57a39024d (patch)
tree28ce2666e1d6ad052a31cbdb9a1c487f83a91e7a /ci-lib-core/src
parent6f78ee3f15421b3450428e711659b28be0eccd7b (diff)
no more warnings :)runner-local-mode
Diffstat (limited to 'ci-lib-core/src')
-rw-r--r--ci-lib-core/src/dbctx.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/ci-lib-core/src/dbctx.rs b/ci-lib-core/src/dbctx.rs
index eec5e72..399f67f 100644
--- a/ci-lib-core/src/dbctx.rs
+++ b/ci-lib-core/src/dbctx.rs
@@ -1,11 +1,8 @@
use std::sync::Mutex;
-// use futures_util::StreamExt;
use rusqlite::{params, Connection, OptionalExtension};
use std::time::{SystemTime, UNIX_EPOCH};
-// use tokio::io::{AsyncReadExt, AsyncWriteExt};
use std::path::Path;
use std::path::PathBuf;
-use std::ops::Deref;
use crate::sql;
@@ -34,10 +31,6 @@ impl DbCtx {
}
}
- fn conn<'a>(&'a self) -> impl Deref<Target = Connection> + 'a {
- self.conn.lock().unwrap()
- }
-
pub fn create_tables(&self) -> Result<(), ()> {
let conn = self.conn.lock().unwrap();
conn.execute(sql::CREATE_ARTIFACTS_TABLE, params![]).unwrap();