Rollup merge of #103067 - Nilstrieb:tidy-likes-the-alphabet, r=jackh726

More alphabetical sorting

Sort and enforce a few more things. The biggest change here is sorting all target features.
This commit is contained in:
Matthias Krüger
2022-10-14 23:43:46 +02:00
committed by GitHub
6 changed files with 171 additions and 143 deletions

View 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 @@ impl ErrorKind {
WouldBlock => "operation would block",
WriteZero => "write zero",
}
// tidy-alphabetical-end
}
}