Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions file/dd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const CONV_ASCII_EBCDIC: [u8; 256] = [
0xdd, 0xde, 0xdf, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
];

#[allow(clippy::upper_case_acronyms)]
enum AsciiConv {
Ascii,
EBCDIC,
Expand Down
5 changes: 1 addition & 4 deletions i18n/gencat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,7 @@ impl MessageCatalog {
+ string_offset;

let msg = String::from_utf8_lossy(&string_pool[string_offset..msg_end]).to_string();
set_msg
.entry(set_id)
.or_insert_with(BTreeMap::new)
.insert(msg_id, msg);
set_msg.entry(set_id).or_default().insert(msg_id, msg);
}
}

Expand Down
5 changes: 3 additions & 2 deletions misc/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ use std::os::unix::fs::MetadataExt;
use std::os::unix::fs::PermissionsExt;
use std::path::Path;

// unary operators
/// Unary operators
#[allow(clippy::upper_case_acronyms)]
#[derive(PartialEq)]
enum UnaryOp {
Block,
Expand All @@ -40,7 +41,7 @@ enum UnaryOp {
StrZero,
}

// binary operators
/// Binary operators
enum BinOp {
PathEquals,
PathNewer,
Expand Down
2 changes: 1 addition & 1 deletion process/fuser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ mod linux {
None
}
})
.unwrap_or_else(NameSpace::default)
.unwrap_or_default()
}

/// Processes file namespaces by expanding paths and updating lists based on the mount flag.
Expand Down