Skip to content

Commit

Permalink
Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
avsaase committed Jul 5, 2024
1 parent ef5ba87 commit 4e2d0a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fusion-imu-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn main() {
.blocklist_var("FP_.*")
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.wrap_static_fns(true)
.wrap_static_fns_path(&out_path.join("extern.c"))
.wrap_static_fns_path(out_path.join("extern.c"))
.use_core();

if let Ok(path) = env::var("FUSION_IMU_INCLUDE_PATH") {
Expand Down
1 change: 1 addition & 0 deletions fusion-imu-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
#![allow(non_snake_case)]
#![allow(improper_ctypes)]
#![allow(rustdoc::bare_urls)]
#![allow(clippy::approx_constant)]

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
6 changes: 6 additions & 0 deletions src/ahrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,9 @@ impl FusionAhrs {
}
}
}

impl Default for FusionAhrs {
fn default() -> Self {
Self::new()
}
}

0 comments on commit 4e2d0a7

Please sign in to comment.