Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bschwind committed Dec 3, 2024
1 parent c661c62 commit 3534fe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/model-api/src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ pub fn register_model(build_model: fn() -> Box<dyn Model>) {
}

fn model() -> &'static mut dyn Model {
unsafe { MODEL.as_deref_mut().unwrap() }
// TODO(bschwind) - Use something with interior mutability if possible.
#[allow(static_mut_refs)]
unsafe {
MODEL.as_deref_mut().unwrap()
}
}

#[macro_export]
Expand Down
2 changes: 1 addition & 1 deletion crates/opencascade/src/kicad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl KicadPcb {
)
}

pub fn layer_edges<'a>(&'a self, layer: &'a BoardLayer) -> impl Iterator<Item = Edge> + '_ {
pub fn layer_edges<'a>(&'a self, layer: &'a BoardLayer) -> impl Iterator<Item = Edge> + 'a {
let footprint_edges = self.board.footprints().flat_map(|footprint| {
let angle = footprint.rotation_degrees.degrees();
// TODO(bschwind) - Document why a negative angle is needed here.
Expand Down

0 comments on commit 3534fe9

Please sign in to comment.