@@ -430,8 +430,8 @@ pub enum ErrorKind {
430
430
impl ErrorKind {
431
431
pub ( crate ) fn as_str ( & self ) -> & ' static str {
432
432
use ErrorKind :: * ;
433
- // tidy-alphabetical-start
434
433
match * self {
434
+ // tidy-alphabetical-start
435
435
AddrInUse => "address in use" ,
436
436
AddrNotAvailable => "address not available" ,
437
437
AlreadyExists => "entity already exists" ,
@@ -444,9 +444,8 @@ impl ErrorKind {
444
444
Deadlock => "deadlock" ,
445
445
DirectoryNotEmpty => "directory not empty" ,
446
446
ExecutableFileBusy => "executable file busy" ,
447
- FileTooLarge => "file too large" ,
448
447
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
449
- QuotaExceeded => "quota exceeded " ,
448
+ FileTooLarge => "file too large " ,
450
449
HostUnreachable => "host unreachable" ,
451
450
Interrupted => "operation interrupted" ,
452
451
InvalidData => "invalid data" ,
@@ -462,6 +461,7 @@ impl ErrorKind {
462
461
Other => "other error" ,
463
462
OutOfMemory => "out of memory" ,
464
463
PermissionDenied => "permission denied" ,
464
+ QuotaExceeded => "quota exceeded" ,
465
465
ReadOnlyFilesystem => "read-only filesystem or storage medium" ,
466
466
ResourceBusy => "resource busy" ,
467
467
StaleNetworkFileHandle => "stale network file handle" ,
@@ -473,8 +473,8 @@ impl ErrorKind {
473
473
Unsupported => "unsupported" ,
474
474
WouldBlock => "operation would block" ,
475
475
WriteZero => "write zero" ,
476
+ // tidy-alphabetical-end
476
477
}
477
- // tidy-alphabetical-end
478
478
}
479
479
}
480
480
0 commit comments