Unbreak tidy

This commit is contained in:
Pavel Grigorenko
2024-09-12 02:58:27 +03:00
parent b2c1c8f13a
commit eb5203233a

View File

@@ -435,8 +435,8 @@ pub enum ErrorKind {
impl ErrorKind { impl ErrorKind {
pub(crate) fn as_str(&self) -> &'static str { pub(crate) fn as_str(&self) -> &'static str {
use ErrorKind::*; use ErrorKind::*;
// tidy-alphabetical-start
match *self { match *self {
// tidy-alphabetical-start
AddrInUse => "address in use", AddrInUse => "address in use",
AddrNotAvailable => "address not available", AddrNotAvailable => "address not available",
AlreadyExists => "entity already exists", AlreadyExists => "entity already exists",
@@ -449,12 +449,11 @@ impl ErrorKind {
Deadlock => "deadlock", Deadlock => "deadlock",
DirectoryNotEmpty => "directory not empty", DirectoryNotEmpty => "directory not empty",
ExecutableFileBusy => "executable file busy", ExecutableFileBusy => "executable file busy",
FileTooLarge => "file too large",
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)", FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)",
QuotaExceeded => "quota exceeded", FileTooLarge => "file too large",
HostUnreachable => "host unreachable", HostUnreachable => "host unreachable",
Interrupted => "operation interrupted",
InProgress => "in progress", InProgress => "in progress",
Interrupted => "operation interrupted",
InvalidData => "invalid data", InvalidData => "invalid data",
InvalidFilename => "invalid filename", InvalidFilename => "invalid filename",
InvalidInput => "invalid input parameter", InvalidInput => "invalid input parameter",
@@ -468,6 +467,7 @@ impl ErrorKind {
Other => "other error", Other => "other error",
OutOfMemory => "out of memory", OutOfMemory => "out of memory",
PermissionDenied => "permission denied", PermissionDenied => "permission denied",
QuotaExceeded => "quota exceeded",
ReadOnlyFilesystem => "read-only filesystem or storage medium", ReadOnlyFilesystem => "read-only filesystem or storage medium",
ResourceBusy => "resource busy", ResourceBusy => "resource busy",
StaleNetworkFileHandle => "stale network file handle", StaleNetworkFileHandle => "stale network file handle",
@@ -479,9 +479,9 @@ impl ErrorKind {
Unsupported => "unsupported", Unsupported => "unsupported",
WouldBlock => "operation would block", WouldBlock => "operation would block",
WriteZero => "write zero", WriteZero => "write zero",
}
// tidy-alphabetical-end // tidy-alphabetical-end
} }
}
} }
#[stable(feature = "io_errorkind_display", since = "1.60.0")] #[stable(feature = "io_errorkind_display", since = "1.60.0")]