fix: fix unused imports and db initialization error
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -166,7 +166,7 @@ fn main() -> Result<(), Error> {
|
||||
.with_context(|| format!("Unable to create data directory {:?}", data_path))?;
|
||||
|
||||
// Initialize database
|
||||
let mut conn = db::init(&db_path)?;
|
||||
let mut conn = db::init_db(&db_path)?;
|
||||
|
||||
match mode {
|
||||
KeepModes::Save => modes::save::mode_save(&mut cmd, &settings, ids, tags, &mut conn, data_path),
|
||||
|
||||
@@ -130,7 +130,7 @@ fn setup_item_metadata(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn collect_item_meta(settings: &config::Settings) -> std::collections::HashMap<String, String> {
|
||||
fn collect_item_meta(_settings: &config::Settings) -> std::collections::HashMap<String, String> {
|
||||
let mut item_meta: std::collections::HashMap<String, String> = crate::modes::common::get_meta_from_env();
|
||||
|
||||
if let Ok(hostname) = gethostname::gethostname().into_string() {
|
||||
|
||||
@@ -17,7 +17,7 @@ pub mod common;
|
||||
mod api;
|
||||
mod pages;
|
||||
|
||||
pub use common::{ServerConfig, AppState, logging_middleware, create_auth_middleware};
|
||||
pub use common::{AppState, logging_middleware, create_auth_middleware};
|
||||
|
||||
pub fn mode_server(
|
||||
_cmd: &mut Command,
|
||||
|
||||
Reference in New Issue
Block a user