@@ -446,8 +446,8 @@ pub enum ErrorKind {
446
446
impl ErrorKind {
447
447
pub ( crate ) fn as_str ( & self ) -> & ' static str {
448
448
use ErrorKind :: * ;
449
- // tidy-alphabetical-start
450
449
match * self {
450
+ // tidy-alphabetical-start
451
451
AddrInUse => "address in use" ,
452
452
AddrNotAvailable => "address not available" ,
453
453
AlreadyExists => "entity already exists" ,
@@ -460,12 +460,11 @@ impl ErrorKind {
460
460
Deadlock => "deadlock" ,
461
461
DirectoryNotEmpty => "directory not empty" ,
462
462
ExecutableFileBusy => "executable file busy" ,
463
- FileTooLarge => "file too large" ,
464
463
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
465
- QuotaExceeded => "quota exceeded " ,
464
+ FileTooLarge => "file too large " ,
466
465
HostUnreachable => "host unreachable" ,
467
- Interrupted => "operation interrupted" ,
468
466
InProgress => "in progress" ,
467
+ Interrupted => "operation interrupted" ,
469
468
InvalidData => "invalid data" ,
470
469
InvalidFilename => "invalid filename" ,
471
470
InvalidInput => "invalid input parameter" ,
@@ -479,6 +478,7 @@ impl ErrorKind {
479
478
Other => "other error" ,
480
479
OutOfMemory => "out of memory" ,
481
480
PermissionDenied => "permission denied" ,
481
+ QuotaExceeded => "quota exceeded" ,
482
482
ReadOnlyFilesystem => "read-only filesystem or storage medium" ,
483
483
ResourceBusy => "resource busy" ,
484
484
StaleNetworkFileHandle => "stale network file handle" ,
@@ -490,8 +490,8 @@ impl ErrorKind {
490
490
Unsupported => "unsupported" ,
491
491
WouldBlock => "operation would block" ,
492
492
WriteZero => "write zero" ,
493
+ // tidy-alphabetical-end
493
494
}
494
- // tidy-alphabetical-end
495
495
}
496
496
}
497
497
0 commit comments