@@ -435,8 +435,8 @@ pub enum ErrorKind {
435
435
impl ErrorKind {
436
436
pub ( crate ) fn as_str ( & self ) -> & ' static str {
437
437
use ErrorKind :: * ;
438
- // tidy-alphabetical-start
439
438
match * self {
439
+ // tidy-alphabetical-start
440
440
AddrInUse => "address in use" ,
441
441
AddrNotAvailable => "address not available" ,
442
442
AlreadyExists => "entity already exists" ,
@@ -449,12 +449,11 @@ impl ErrorKind {
449
449
Deadlock => "deadlock" ,
450
450
DirectoryNotEmpty => "directory not empty" ,
451
451
ExecutableFileBusy => "executable file busy" ,
452
- FileTooLarge => "file too large" ,
453
452
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
454
- QuotaExceeded => "quota exceeded " ,
453
+ FileTooLarge => "file too large " ,
455
454
HostUnreachable => "host unreachable" ,
456
- Interrupted => "operation interrupted" ,
457
455
InProgress => "in progress" ,
456
+ Interrupted => "operation interrupted" ,
458
457
InvalidData => "invalid data" ,
459
458
InvalidFilename => "invalid filename" ,
460
459
InvalidInput => "invalid input parameter" ,
@@ -468,6 +467,7 @@ impl ErrorKind {
468
467
Other => "other error" ,
469
468
OutOfMemory => "out of memory" ,
470
469
PermissionDenied => "permission denied" ,
470
+ QuotaExceeded => "quota exceeded" ,
471
471
ReadOnlyFilesystem => "read-only filesystem or storage medium" ,
472
472
ResourceBusy => "resource busy" ,
473
473
StaleNetworkFileHandle => "stale network file handle" ,
@@ -479,8 +479,8 @@ impl ErrorKind {
479
479
Unsupported => "unsupported" ,
480
480
WouldBlock => "operation would block" ,
481
481
WriteZero => "write zero" ,
482
+ // tidy-alphabetical-end
482
483
}
483
- // tidy-alphabetical-end
484
484
}
485
485
}
486
486
0 commit comments