Skip to content

Commit 5fab625

Browse files
committed
clippy
1 parent 8e87e48 commit 5fab625

File tree

2 files changed

+45
-50
lines changed

2 files changed

+45
-50
lines changed

Cargo.lock

Lines changed: 43 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/libafl_qemu/build_linux.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,9 @@ pub fn build() {
106106
let vharness_stub_bindings_file = stub_dir.join(format!("{api}_stub_bindings.rs"));
107107

108108
if env::var("DOCS_RS").is_ok() || cfg!(feature = "clippy") {
109-
fs::copy(&vharness_stub_bindings_file, &vharness_bindings_file).expect(
110-
format!(
111-
"Could not copy stub bindings file from {} to {}.",
109+
fs::copy(&vharness_stub_bindings_file, &vharness_bindings_file).unwrap_or_else(|_| panic!("Could not copy stub bindings file from {} to {}.",
112110
vharness_stub_bindings_file.display(),
113-
vharness_bindings_file.display()
114-
)
115-
.as_str(),
116-
);
111+
vharness_bindings_file.display()));
117112
return; // only build when we're not generating docs
118113
}
119114

0 commit comments

Comments
 (0)