We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8a5770 + 41aace5 commit d5ecd7eCopy full SHA for d5ecd7e
1 file changed
src/bin/util-linux.rs
@@ -85,9 +85,8 @@ fn main() {
85
process::exit(1);
86
}
87
88
- let util = match util_os.to_str() {
89
- Some(util) => util,
90
- None => not_found(&util_os),
+ let Some(util) = util_os.to_str() else {
+ not_found(&util_os)
91
};
92
93
if util == "completion" {
@@ -106,9 +105,8 @@ fn main() {
106
105
if util == "--help" || util == "-h" {
107
// see if they want help on a specific util
108
if let Some(util_os) = args.next() {
109
110
111
112
113
114
match utils.get(util) {
0 commit comments