Skip to content

Commit 4e4ab8f

Browse files
committed
codestyle: cargo fix
1 parent efd877f commit 4e4ab8f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::subcommands::list;
2-
use clap::Command;
2+
33
use clap::{command, Parser, Subcommand};
44
use enum_dispatch::enum_dispatch;
55
#[derive(Parser)]

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use std::io;
21

3-
use clap::{command, Parser, Subcommand};
2+
3+
use clap::{Parser};
44

55
use crate::args::*;
66
mod args;

src/subcommands/list.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ use crate::todos_search::todos_search;
22
use crate::{Arguments, SubCommandWithFunction};
33
use clap::{Args, ValueEnum};
44
use crossterm::style::Stylize;
5-
use regex::{Regex, Replacer};
5+
use regex::{Regex};
66
use std::env;
7-
use std::path::{Path, PathBuf};
7+
use std::path::{PathBuf};
88
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
99
enum CheckMarkType {
1010
Nerd,
@@ -59,7 +59,7 @@ pub struct List {
5959
checkmark_char: Option<String>,
6060
}
6161
impl SubCommandWithFunction for List {
62-
fn on_use(&self, args: &Arguments) {
62+
fn on_use(&self, _args: &Arguments) {
6363
let checkmark_char = self.checkmark_char.clone().unwrap_or("".to_string());
6464
for todo in todos_search(
6565
if self.ignore.is_empty() {

src/todos_search.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use regex::{Match, Regex};
1+
use regex::{Regex};
22
use std::path::{Path, PathBuf};
3-
use std::{fs::{read_dir, read_to_string}, io};
3+
use std::{fs::{read_to_string}};
44
#[derive(Default)]
55
pub struct Todo {
66
pub path: String,

0 commit comments

Comments
 (0)