Skip to content

Commit

Permalink
More clippy lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
micahsnyder committed Dec 16, 2024
1 parent 99052ef commit 24f3b8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libclamav_rust/src/cdiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ pub fn script2cdiff(script_file_name: &str, builder: &str, server: &str) -> Resu

/// C interface for cdiff_apply() (below).
/// This function is for use in sigtool.c and libfreshclam_internal.c
///
/// # Safety
///
/// No parameters may be NULL.
#[export_name = "cdiff_apply"]
pub unsafe extern "C" fn _cdiff_apply(
cdiff_file_path_str: *const c_char,
Expand Down
2 changes: 1 addition & 1 deletion libclamav_rust/src/codesign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ where
}
}

let mut writer = std::io::BufWriter::new(options.open(&signature_file_path)?);
let mut writer = std::io::BufWriter::new(options.open(signature_file_path)?);

if !signature_file_path.exists() || !append {
writer.write_all(b"#clamsign-1.0\n")?;
Expand Down

0 comments on commit 24f3b8e

Please sign in to comment.