From d2ddb8917524b0064e453e848fadaab8e774e141 Mon Sep 17 00:00:00 2001 From: Oscar Le Dauphin Date: Fri, 10 Jul 2026 11:24:38 +0200 Subject: [PATCH] fix: buggy clippy lint --- libdd-common/src/unix_utils/file_ops.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libdd-common/src/unix_utils/file_ops.rs b/libdd-common/src/unix_utils/file_ops.rs index a41bf1044b..6ffe853c0e 100644 --- a/libdd-common/src/unix_utils/file_ops.rs +++ b/libdd-common/src/unix_utils/file_ops.rs @@ -23,6 +23,7 @@ pub fn open_file_or_quiet(filename: Option<&str>) -> std::io::Result { mod tests { use super::*; use std::fs; + use std::io; use std::io::Write; use std::os::fd::FromRawFd; use tempfile::tempdir; @@ -143,7 +144,7 @@ mod tests { assert!(result.is_err()); let error = result.unwrap_err(); - assert_eq!(error.kind(), std::io::ErrorKind::NotFound); + assert_eq!(error.kind(), io::ErrorKind::NotFound); } #[test] @@ -153,7 +154,7 @@ mod tests { assert!(result.is_err()); let error = result.unwrap_err(); - assert_eq!(error.kind(), std::io::ErrorKind::NotFound); + assert_eq!(error.kind(), io::ErrorKind::NotFound); } #[test] @@ -165,7 +166,7 @@ mod tests { // On some systems this might be NotFound, on others PermissionDenied assert!(matches!( error.kind(), - std::io::ErrorKind::NotFound | std::io::ErrorKind::PermissionDenied + io::ErrorKind::NotFound | io::ErrorKind::PermissionDenied )); } }