Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions libdd-common/src/unix_utils/file_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub fn open_file_or_quiet(filename: Option<&str>) -> std::io::Result<RawFd> {
mod tests {
use super::*;
use std::fs;
use std::io;
use std::io::Write;
use std::os::fd::FromRawFd;
use tempfile::tempdir;
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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
));
}
}
Expand Down
Loading