Fix clippy suggestions

This commit is contained in:
David Peter 2022-09-11 21:29:43 +02:00
parent f63c463471
commit 9ea882d7cc
5 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ pub use self::job::{batch, job};
use self::token::Token; use self::token::Token;
/// Execution mode of the command /// Execution mode of the command
#[derive(Debug, Clone, Copy, PartialEq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ExecutionMode { pub enum ExecutionMode {
/// Command is executed for each search result /// Command is executed for each search result
OneByOne, OneByOne,

View File

@ -4,7 +4,7 @@ use std::fmt::{self, Display, Formatter};
/// ///
/// Each `Token` contains either text, or a placeholder variant, which will be used to generate /// Each `Token` contains either text, or a placeholder variant, which will be used to generate
/// commands after all tokens for a given command template have been collected. /// commands after all tokens for a given command template have been collected.
#[derive(Clone, Debug, PartialEq)] #[derive(Clone, Debug, PartialEq, Eq)]
pub enum Token { pub enum Token {
Placeholder, Placeholder,
Basename, Basename,

View File

@ -3,7 +3,7 @@ use std::process;
#[cfg(unix)] #[cfg(unix)]
use nix::sys::signal::{raise, signal, SigHandler, Signal}; use nix::sys::signal::{raise, signal, SigHandler, Signal};
#[derive(Debug, Clone, Copy, PartialEq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ExitCode { pub enum ExitCode {
Success, Success,
HasResults(bool), HasResults(bool),

View File

@ -4,7 +4,7 @@ use regex::Regex;
static SIZE_CAPTURES: Lazy<Regex> = static SIZE_CAPTURES: Lazy<Regex> =
Lazy::new(|| Regex::new(r"(?i)^([+-]?)(\d+)(b|[kmgt]i?b?)$").unwrap()); Lazy::new(|| Regex::new(r"(?i)^([+-]?)(\d+)(b|[kmgt]i?b?)$").unwrap());
#[derive(Clone, Copy, Debug, PartialEq)] #[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SizeFilter { pub enum SizeFilter {
Max(u64), Max(u64),
Min(u64), Min(u64),

View File

@ -3,7 +3,7 @@ use chrono::{offset::TimeZone, DateTime, Local, NaiveDate};
use std::time::SystemTime; use std::time::SystemTime;
/// Filter based on time ranges. /// Filter based on time ranges.
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq, Eq)]
pub enum TimeFilter { pub enum TimeFilter {
Before(SystemTime), Before(SystemTime),
After(SystemTime), After(SystemTime),