Clippy CI blocker
This commit is contained in:
parent
04114a8868
commit
fc4ccbee1d
@ -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);
|
||||
}
|
||||
|
||||
@ -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))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user