fix var name and format warning
All checks were successful
Run Check Script / check (pull_request) Successful in 1m17s

This commit is contained in:
Ian Letourneau 2025-08-31 12:35:21 -04:00
parent a27c7c2310
commit 8bcbe7a226

View File

@ -15,15 +15,12 @@ pub struct SqliteInventoryRepository {
impl SqliteInventoryRepository {
pub async fn new(database_url: &str) -> Result<Self, RepoError> {
let _pool = SqlitePool::connect(database_url)
let pool = SqlitePool::connect(database_url)
.await
.map_err(|e| RepoError::ConnectionFailed(e.to_string()))?;
info!(
"SQLite inventory repository initialized at '{}'",
database_url,
);
Ok(Self { pool: _pool })
info!("SQLite inventory repository initialized at '{database_url}'");
Ok(Self { pool })
}
}