mirror of
https://github.com/isar/rusqlite.git
synced 2025-02-17 05:18:13 +08:00
Fix clippy warning
This commit is contained in:
parent
6ae9802fa3
commit
93c82670d2
@ -370,10 +370,7 @@ mod bindings {
|
|||||||
fn generating_bundled_bindings() -> bool {
|
fn generating_bundled_bindings() -> bool {
|
||||||
// Hacky way to know if we're generating the bundled bindings
|
// Hacky way to know if we're generating the bundled bindings
|
||||||
println!("cargo:rerun-if-env-changed=LIBSQLITE3_SYS_BUNDLING");
|
println!("cargo:rerun-if-env-changed=LIBSQLITE3_SYS_BUNDLING");
|
||||||
match std::env::var("LIBSQLITE3_SYS_BUNDLING") {
|
matches!(std::env::var("LIBSQLITE3_SYS_BUNDLING"), Ok(v) if v != "0")
|
||||||
Ok(v) if v != "0" => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_to_out_dir(header: HeaderLocation, out_path: &Path) {
|
pub fn write_to_out_dir(header: HeaderLocation, out_path: &Path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user