]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/io/error.rs
Rollup merge of #103594 - maniwani:fix-issue-91417, r=thomcc
[rust.git] / library / std / src / io / error.rs
index 837145bfaede6538fd79e6d22469771acc4de41d..3cabf24492eaf26216e811a85b158d25abbc136f 100644 (file)
@@ -387,7 +387,7 @@ pub enum ErrorKind {
 impl ErrorKind {
     pub(crate) fn as_str(&self) -> &'static str {
         use ErrorKind::*;
-        // Strictly alphabetical, please.  (Sadly rustfmt cannot do this yet.)
+        // tidy-alphabetical-start
         match *self {
             AddrInUse => "address in use",
             AddrNotAvailable => "address not available",
@@ -431,6 +431,7 @@ pub(crate) fn as_str(&self) -> &'static str {
             WouldBlock => "operation would block",
             WriteZero => "write zero",
         }
+        // tidy-alphabetical-end
     }
 }