Clippy CI blocker

This commit is contained in:
Kornel 2026-01-07 19:27:04 +00:00 committed by Kornel
parent 04114a8868
commit fc4ccbee1d
2 changed files with 2 additions and 1 deletions

View File

@ -660,7 +660,7 @@ fn generate_bindings(config: &Config) {
);
// we need to add special platform header file with env for support cross building
let header = format!("{}/usr/include/{}", sysroot.display().to_string(), c_target);
let header = format!("{}/usr/include/{}", sysroot.display(), c_target);
if PathBuf::from(&header).is_dir() {
builder = builder.clang_arg("-I").clang_arg(&header);
}

View File

@ -317,6 +317,7 @@ impl Asn1Time {
unsafe {
// for higher musl version, need to convert i32 to i64
// https://github.com/rust-lang/libc/issues/1848
#[allow(clippy::useless_conversion)]
let handle = cvt_p(ffi::ASN1_TIME_set(ptr::null_mut(), time.into()))?;
Ok(Asn1Time::from_ptr(handle))
}