Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkovaxx committed Nov 26, 2023
1 parent 542abff commit f1025cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/opencascade/src/primitives/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ impl Face {
#[must_use]
pub fn sweep_along(&self, path: &Wire) -> Solid {
let profile_shape = ffi::cast_face_to_shape(&self.inner);
let mut make_pipe = ffi::BRepOffsetAPI_MakePipe_ctor(&path.inner, &profile_shape);
let mut make_pipe = ffi::BRepOffsetAPI_MakePipe_ctor(&path.inner, profile_shape);

let pipe_shape = make_pipe.pin_mut().Shape();
let result_solid = ffi::TopoDS_cast_to_solid(pipe_shape);

Solid::from_solid(&result_solid)
Solid::from_solid(result_solid)
}

pub fn edges(&self) -> EdgeIterator {
Expand Down
4 changes: 2 additions & 2 deletions crates/opencascade/src/primitives/wire.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ impl Wire {
#[must_use]
pub fn sweep_along(&self, path: &Wire) -> Shell {
let profile_shape = ffi::cast_wire_to_shape(&self.inner);
let mut make_pipe = ffi::BRepOffsetAPI_MakePipe_ctor(&path.inner, &profile_shape);
let mut make_pipe = ffi::BRepOffsetAPI_MakePipe_ctor(&path.inner, profile_shape);

let pipe_shape = make_pipe.pin_mut().Shape();
let result_shell = ffi::TopoDS_cast_to_shell(pipe_shape);

Shell::from_shell(&result_shell)
Shell::from_shell(result_shell)
}

#[must_use]
Expand Down

0 comments on commit f1025cd

Please sign in to comment.