fix: remove unused imports and parameters
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -4,20 +4,8 @@ use clap::*;
|
||||
use clap::error::ErrorKind;
|
||||
use log::*;
|
||||
|
||||
extern crate directories;
|
||||
use directories::ProjectDirs;
|
||||
|
||||
extern crate prettytable;
|
||||
|
||||
|
||||
extern crate lazy_static;
|
||||
|
||||
|
||||
extern crate term;
|
||||
extern crate serde_json;
|
||||
extern crate serde_yaml;
|
||||
extern crate serde;
|
||||
|
||||
use keep::args::{Args, NumberOrString};
|
||||
use keep::config::Settings;
|
||||
use keep::db;
|
||||
@@ -30,7 +18,7 @@ fn main() -> Result<(), Error> {
|
||||
use std::fs;
|
||||
let proj_dirs = ProjectDirs::from("gt0.ca", "Andrew Phillips", "Keep");
|
||||
|
||||
let mut cmd = Args::command();
|
||||
let cmd = Args::command();
|
||||
let args = Args::parse();
|
||||
|
||||
// Validate arguments based on mode
|
||||
|
||||
@@ -10,11 +10,11 @@ use log::warn;
|
||||
use rusqlite::Connection;
|
||||
|
||||
pub fn mode_delete(
|
||||
cmd: &mut Command,
|
||||
_cmd: &mut Command,
|
||||
_settings: &config::Settings,
|
||||
_config: &config::Settings,
|
||||
ids: &mut Vec<i64>,
|
||||
tags: &mut Vec<String>,
|
||||
_tags: &mut Vec<String>,
|
||||
conn: &mut Connection,
|
||||
data_path: PathBuf,
|
||||
) -> Result<()> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use std::io::{Write};
|
||||
use std::io::Write;
|
||||
|
||||
use crate::common::is_binary::is_binary;
|
||||
use crate::common::PIPESIZE;
|
||||
|
||||
@@ -2,8 +2,6 @@ use crate::config;
|
||||
use crate::services::types::ItemWithMeta;
|
||||
use crate::modes::common::{format_size, OutputFormat};
|
||||
use anyhow::{anyhow, Result};
|
||||
use serde_json;
|
||||
use serde_yaml;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use clap::Command;
|
||||
use clap::error::ErrorKind;
|
||||
|
||||
@@ -51,7 +51,7 @@ pub fn mode_save(
|
||||
writer: stdout.lock(),
|
||||
};
|
||||
|
||||
let _item_id = item_service.save_item(tee_reader, cmd, settings, tags, conn)?;
|
||||
item_service.save_item(tee_reader, cmd, settings, tags, conn)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user