about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorPavel Grigorenko <GrigorenkoPV@ya.ru>2024-09-12 02:58:27 +0300
committerPavel Grigorenko <GrigorenkoPV@ya.ru>2024-10-05 21:47:22 +0300
commiteb5203233a20e15c9f8f0796cd82e9170c6466f9 (patch)
tree856447672bc8efdb664a2e2e26125a78c2729294 /library/std/src
parentb2c1c8f13a88be63ebe1907996bf806a91ec5680 (diff)
downloadrust-eb5203233a20e15c9f8f0796cd82e9170c6466f9.tar.gz
rust-eb5203233a20e15c9f8f0796cd82e9170c6466f9.zip
Unbreak tidy
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/error.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs
index 4cb0754de9b..0c76ddec99e 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -435,8 +435,8 @@ pub enum ErrorKind {
 impl ErrorKind {
     pub(crate) fn as_str(&self) -> &'static str {
         use ErrorKind::*;
-        // tidy-alphabetical-start
         match *self {
+            // tidy-alphabetical-start
             AddrInUse => "address in use",
             AddrNotAvailable => "address not available",
             AlreadyExists => "entity already exists",
@@ -449,12 +449,11 @@ impl ErrorKind {
             Deadlock => "deadlock",
             DirectoryNotEmpty => "directory not empty",
             ExecutableFileBusy => "executable file busy",
-            FileTooLarge => "file too large",
             FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)",
-            QuotaExceeded => "quota exceeded",
+            FileTooLarge => "file too large",
             HostUnreachable => "host unreachable",
-            Interrupted => "operation interrupted",
             InProgress => "in progress",
+            Interrupted => "operation interrupted",
             InvalidData => "invalid data",
             InvalidFilename => "invalid filename",
             InvalidInput => "invalid input parameter",
@@ -468,6 +467,7 @@ impl ErrorKind {
             Other => "other error",
             OutOfMemory => "out of memory",
             PermissionDenied => "permission denied",
+            QuotaExceeded => "quota exceeded",
             ReadOnlyFilesystem => "read-only filesystem or storage medium",
             ResourceBusy => "resource busy",
             StaleNetworkFileHandle => "stale network file handle",
@@ -479,8 +479,8 @@ impl ErrorKind {
             Unsupported => "unsupported",
             WouldBlock => "operation would block",
             WriteZero => "write zero",
+            // tidy-alphabetical-end
         }
-        // tidy-alphabetical-end
     }
 }