Revert "Resolve let_underscore_untyped pedantic clippy lint"

This reverts commit d739d18f923b15dc24e980a59bca73022a2d006e.
This commit is contained in:
David Tolnay 2023-02-26 21:05:40 -07:00
parent d739d18f92
commit 6fd6b654dd
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 5 additions and 5 deletions

View File

@ -148,7 +148,7 @@ fn main() {
let out = write::output(&properties, &index_start, &index_continue, &halfdense);
let path = unicode_ident_dir.join(TABLES);
if let Err(err) = fs::write(&path, out) {
_ = writeln!(io::stderr(), "{}: {err}", path.display());
let _ = writeln!(io::stderr(), "{}: {err}", path.display());
process::exit(1);
}
}

View File

@ -30,7 +30,7 @@ pub fn parse_xid_properties(ucd_dir: &Path) -> Properties {
let contents = fs::read_to_string(path).unwrap_or_else(|err| {
let suggestion =
"Download from https://www.unicode.org/Public/zipped/l5.0.0/UCD.zip and unzip.";
_ = writeln!(io::stderr(), "{}: {err}\n{suggestion}", ucd_dir.display());
let _ = writeln!(io::stderr(), "{}: {err}\n{suggestion}", ucd_dir.display());
process::exit(1);
});
@ -39,7 +39,7 @@ pub fn parse_xid_properties(ucd_dir: &Path) -> Properties {
continue;
}
let (lo, hi, name) = parse_line(line).unwrap_or_else(|| {
_ = writeln!(io::stderr(), "{filename} line {i} is unexpected:\n{line}");
let _ = writeln!(io::stderr(), "{filename} line {i} is unexpected:\n{line}");
process::exit(1);
});
let set = match name {

View File

@ -25,7 +25,7 @@ fn test_xid_size() {
let size = size_of_val(tables::XID_START) + size_of_val(tables::XID_CONTINUE);
assert_eq!(11528, size);
_ = tables::BY_NAME;
let _ = tables::BY_NAME;
}
#[cfg(target_pointer_width = "64")]
@ -72,7 +72,7 @@ fn test_trieset_size() {
assert_eq!(10208, start_size + continue_size);
_ = trie::BY_NAME;
let _ = trie::BY_NAME;
}
#[test]