@@ -307,23 +307,24 @@ pub enum ErrorKind {
307
307
impl ErrorKind {
308
308
pub ( crate ) fn as_str ( & self ) -> & ' static str {
309
309
use ErrorKind :: * ;
310
+ // Strictly alphabetical, please. (Sadly rustfmt cannot do this yet.)
310
311
match * self {
311
312
AddrInUse => "address in use" ,
312
313
AddrNotAvailable => "address not available" ,
313
314
AlreadyExists => "entity already exists" ,
314
315
ArgumentListTooLong => "argument list too long" ,
315
316
BrokenPipe => "broken pipe" ,
316
- ResourceBusy => "resource busy" ,
317
317
ConnectionAborted => "connection aborted" ,
318
318
ConnectionRefused => "connection refused" ,
319
319
ConnectionReset => "connection reset" ,
320
320
CrossesDevices => "cross-device link or rename" ,
321
321
Deadlock => "deadlock" ,
322
322
DirectoryNotEmpty => "directory not empty" ,
323
323
ExecutableFileBusy => "executable file busy" ,
324
+ FileTooLarge => "file too large" ,
324
325
FilenameTooLong => "filename too long" ,
326
+ FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
325
327
FilesystemQuotaExceeded => "filesystem quota exceeded" ,
326
- FileTooLarge => "file too large" ,
327
328
HostUnreachable => "host unreachable" ,
328
329
Interrupted => "operation interrupted" ,
329
330
InvalidData => "invalid data" ,
@@ -332,16 +333,16 @@ impl ErrorKind {
332
333
NetworkDown => "network down" ,
333
334
NetworkUnreachable => "network unreachable" ,
334
335
NotADirectory => "not a directory" ,
335
- StorageFull => "no storage space" ,
336
336
NotConnected => "not connected" ,
337
337
NotFound => "entity not found" ,
338
+ NotSeekable => "seek on unseekable file" ,
338
339
Other => "other error" ,
339
340
OutOfMemory => "out of memory" ,
340
341
PermissionDenied => "permission denied" ,
341
342
ReadOnlyFilesystem => "read-only filesystem or storage medium" ,
343
+ ResourceBusy => "resource busy" ,
342
344
StaleNetworkFileHandle => "stale network file handle" ,
343
- FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
344
- NotSeekable => "seek on unseekable file" ,
345
+ StorageFull => "no storage space" ,
345
346
TimedOut => "timed out" ,
346
347
TooManyLinks => "too many links" ,
347
348
Uncategorized => "uncategorized error" ,
0 commit comments