fix: remove match if let guards for Rust 1.93

This commit is contained in:
Michael Aaron Murphy 2026-04-30 21:29:41 +02:00 • committed by Michael Murphy
parent 506f86eff1
commit f8323171e7

View file

@ -60,21 +60,24 @@ pub fn exec_to_command(
} }
// %f and %u behave the same in a file manager. // %f and %u behave the same in a file manager.
Some('f' | 'u') Some('f' | 'u') => {
if let Some(path) = path if let Some(path) = path
&& !field_code_used => && !field_code_used
{ {
// TODO: files on remote file systems should be copied to a temporary local file. // TODO: files on remote file systems should be copied to a temporary local file.
batch_process = true; batch_process = true;
field_code_used = true; field_code_used = true;
new_argument.push_str(path.as_bytes()); new_argument.push_str(path.as_bytes());
}
} }
// %F and %U behave the same in a file manager. // %F and %U behave the same in a file manager.
Some('F') | Some('U') if !field_code_used && new_argument.is_empty() => { Some('F') | Some('U') => {
field_code_used = true; if !field_code_used && new_argument.is_empty() {
for path in path_opt.iter().map(AsRef::as_ref) { field_code_used = true;
args.push(BString::new(path.as_bytes().to_owned())); for path in path_opt.iter().map(AsRef::as_ref) {
args.push(BString::new(path.as_bytes().to_owned()));
}
} }
} }