diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-11-24 19:58:23 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-11-24 19:58:23 +0200 |
commit | 5ba7b2cd7bb07abe8faafe5e45db6145b3f90bc9 (patch) | |
tree | 3a848deb24d1b19258e323b386c86caa423892df /build.rs | |
parent | 104352e5950598f4a659bd593d587910af8adc12 (diff) | |
download | meli-5ba7b2cd7bb07abe8faafe5e45db6145b3f90bc9.zip |
meli: fix clippy lints for meli binary
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -60,8 +60,9 @@ fn main() { "could not execute `mandoc` or `man`. If the binaries are not available in the PATH, disable `cli-docs` feature to be able to continue compilation.", ); - let file = File::create(&out_dir_path) - .expect(&format!("Could not create file {}", out_dir_path.display())); + let file = File::create(&out_dir_path).unwrap_or_else(|err| { + panic!("Could not create file {}: {}", out_dir_path.display(), err) + }); let mut gz = GzBuilder::new() .comment(output.stdout.len().to_string().into_bytes()) .write(file, Compression::default()); |