Skip to content

Commit

Permalink
chore: Remove allow
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Dec 24, 2024
1 parent ff48a35 commit 786910e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion examples/cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ struct Opt {
fn main() -> ExitCode {
let opt = Opt::parse();

#[allow(clippy::option_if_let_else)]
let contents: io::Result<Vec<_>> = if let Some(files) = opt.input {
files.into_iter().map(fs::read_to_string).collect()
} else {
Expand Down
1 change: 0 additions & 1 deletion src/exit_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
fn equality() {
assert_eq!(ExitCode::Ok, ExitCode::Ok);
assert_ne!(ExitCode::Ok, ExitCode::Usage);
Expand Down
3 changes: 0 additions & 3 deletions src/exit_code/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ mod tests {

#[cfg(feature = "std")]
#[test]
#[allow(clippy::too_many_lines)]
fn from_io_error_to_exit_code() {
use std::io::{Error, ErrorKind};

Expand Down Expand Up @@ -826,7 +825,6 @@ mod tests {

#[cfg(feature = "std")]
#[test]
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
fn from_io_error_kind_to_exit_code() {
use std::io;

Expand Down Expand Up @@ -983,7 +981,6 @@ mod tests {
#[cfg(feature = "std")]
#[cfg(any(unix, windows))]
#[test]
#[allow(clippy::cognitive_complexity)]
fn try_from_process_exit_status_to_exit_code() {
assert_eq!(
ExitCode::try_from(get_exit_status(0)).unwrap(),
Expand Down
6 changes: 0 additions & 6 deletions src/exit_code/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity)]
fn octal() {
assert_eq!(format!("{:o}", ExitCode::Ok), "0");
assert_eq!(format!("{:#o}", ExitCode::Ok), "0o0");
Expand Down Expand Up @@ -242,7 +241,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity)]
fn lower_hex() {
assert_eq!(format!("{:x}", ExitCode::Ok), "0");
assert_eq!(format!("{:#x}", ExitCode::Ok), "0x0");
Expand Down Expand Up @@ -311,7 +309,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity)]
fn upper_hex() {
assert_eq!(format!("{:X}", ExitCode::Ok), "0");
assert_eq!(format!("{:#X}", ExitCode::Ok), "0x0");
Expand Down Expand Up @@ -380,7 +377,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity)]
fn binary() {
assert_eq!(format!("{:b}", ExitCode::Ok), "0");
assert_eq!(format!("{:#b}", ExitCode::Ok), "0b0");
Expand Down Expand Up @@ -449,7 +445,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity)]
fn lower_exp() {
assert_eq!(format!("{:e}", ExitCode::Ok), "0e0");
assert_eq!(format!("{:05e}", ExitCode::Ok), "000e0");
Expand Down Expand Up @@ -486,7 +481,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity)]
fn upper_exp() {
assert_eq!(format!("{:E}", ExitCode::Ok), "0E0");
assert_eq!(format!("{:05E}", ExitCode::Ok), "000E0");
Expand Down
1 change: 0 additions & 1 deletion src/exit_code/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ mod tests {
}

#[test]
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
fn from_result_type_to_exit_code() {
assert_eq!(ExitCode::from(Ok::<(), ExitCode>(())), ExitCode::Ok);
assert_eq!(ExitCode::from(Ok::<u8, ExitCode>(42)), ExitCode::Ok);
Expand Down

0 comments on commit 786910e

Please sign in to comment.