We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b1c21b commit f3f860fCopy full SHA for f3f860f
1 file changed
src/commands/decompress.rs
@@ -192,9 +192,8 @@ pub fn decompress_file(options: DecompressOptions) -> Result<()> {
192
let mut reader = LimitedReader::new(reader);
193
194
// Non-archive targets always have a file name
195
- let file_name = match file_name {
196
- Some(file_name) => file_name,
197
- None => unreachable!("a non-archive target always has a file name"),
+ let Some(file_name) = file_name else {
+ unreachable!("a non-archive target always has a file name");
198
};
199
200
let final_output_path = dir.join(file_name);
0 commit comments