diff --git a/src/cli.rs b/src/cli.rs index 702ea70..bcb2bde 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -9,7 +9,7 @@ pub mod annotate; pub mod version; pub mod event; -use clap::{Parser, Subcommand, CommandFactory, ValueEnum}; +use clap::{Parser, Subcommand, ValueEnum}; use clap_complete::Shell; /// Output format for commands. diff --git a/src/cli/annotate.rs b/src/cli/annotate.rs index 3acc8b7..50db9d5 100644 --- a/src/cli/annotate.rs +++ b/src/cli/annotate.rs @@ -20,7 +20,7 @@ pub struct ArgsAdd { #[derive(Args, Debug)] pub struct ArgsList { pub file_pattern: String } -pub fn run(cmd: &AnnotateCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &AnnotateCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { AnnotateCmd::Add(a) => todo!("annotate add {:?}", a), AnnotateCmd::List(a) => todo!("annotate list {:?}", a), diff --git a/src/cli/coll.rs b/src/cli/coll.rs index 1ade309..f2b96e3 100644 --- a/src/cli/coll.rs +++ b/src/cli/coll.rs @@ -17,7 +17,7 @@ pub struct AddArgs { pub name: String, pub file_pattern: String } #[derive(Args, Debug)] pub struct ListArgs { pub name: String } -pub fn run(cmd: &CollCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &CollCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { CollCmd::Create(a) => todo!("coll create {:?}", a), CollCmd::Add(a) => todo!("coll add {:?}", a), diff --git a/src/cli/event.rs b/src/cli/event.rs index c4120b7..6988be6 100644 --- a/src/cli/event.rs +++ b/src/cli/event.rs @@ -16,7 +16,7 @@ pub struct ArgsAdd { pub description: String, } -pub fn run(cmd: &EventCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &EventCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { EventCmd::Add(a) => todo!("event add {:?}", a), EventCmd::Timeline => todo!("event timeline"), diff --git a/src/cli/remind.rs b/src/cli/remind.rs index eeda818..99dac34 100644 --- a/src/cli/remind.rs +++ b/src/cli/remind.rs @@ -15,7 +15,7 @@ pub struct ArgsSet { pub message: String, } -pub fn run(cmd: &RemindCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &RemindCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { RemindCmd::Set(a) => todo!("remind set {:?}", a), } diff --git a/src/cli/state.rs b/src/cli/state.rs index 33381c8..7ac3628 100644 --- a/src/cli/state.rs +++ b/src/cli/state.rs @@ -17,7 +17,7 @@ pub struct ArgsTrans { pub from_state: String, pub to_state: String } #[derive(Args, Debug)] pub struct ArgsLog { pub file_pattern: String } -pub fn run(cmd: &StateCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &StateCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { StateCmd::Set(a) => todo!("state set {:?}", a), StateCmd::TransitionsAdd(a)=> todo!("state transitions-add {:?}", a), diff --git a/src/cli/task.rs b/src/cli/task.rs index e25a53d..57f9d4c 100644 --- a/src/cli/task.rs +++ b/src/cli/task.rs @@ -14,7 +14,7 @@ pub struct ArgsScan { pub directory: String } #[derive(Args, Debug)] pub struct ArgsList { #[arg(long)] pub due_today: bool } -pub fn run(cmd: &TaskCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &TaskCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { TaskCmd::Scan(a) => todo!("task scan {:?}", a), TaskCmd::List(a) => todo!("task list {:?}", a), diff --git a/src/cli/version.rs b/src/cli/version.rs index 13476b7..0c5bf26 100644 --- a/src/cli/version.rs +++ b/src/cli/version.rs @@ -11,7 +11,7 @@ pub enum VersionCmd { #[derive(Args, Debug)] pub struct ArgsDiff { pub file: String } -pub fn run(cmd: &VersionCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &VersionCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { VersionCmd::Diff(a) => todo!("version diff {:?}", a), } diff --git a/src/cli/view.rs b/src/cli/view.rs index c07c8bb..2504d93 100644 --- a/src/cli/view.rs +++ b/src/cli/view.rs @@ -15,7 +15,7 @@ pub struct ArgsSave { pub view_name: String, pub query: String } #[derive(Args, Debug)] pub struct ArgsExec { pub view_name: String } -pub fn run(cmd: &ViewCmd, conn: &mut Connection, format: Format) -> anyhow::Result<()> { +pub fn run(cmd: &ViewCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> { match cmd { ViewCmd::Save(a) => todo!("view save {:?}", a), ViewCmd::List => todo!("view list"), diff --git a/src/main.rs b/src/main.rs index f9809bc..6102757 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,6 @@ // src/main.rs +#![deny(warnings)] + mod cli; mod config; mod db; diff --git a/target/release/marlin b/target/release/marlin index 5694a65..b95bc4f 100755 Binary files a/target/release/marlin and b/target/release/marlin differ