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-lib-core/src/dbctx.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ci-lib-core/src') 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 + '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(); -- cgit v1.1