Simplify return value of ConnectExt::connect

This commit is contained in:
Hanno Braun 2025-02-18 20:06:18 +01:00
parent fe597c4fd4
commit 460084d11c
2 changed files with 4 additions and 5 deletions

View File

@ -22,11 +22,11 @@ pub trait ConnectExt {
///
/// It should be seen as more of a placeholder for a real implementation of
/// this operation.
fn connect(self, other: Self) -> Handle<Solid>;
fn connect(self, other: Self) -> Solid;
}
impl ConnectExt for Handle<Face> {
fn connect(self, other: Self) -> Handle<Solid> {
fn connect(self, other: Self) -> Solid {
assert_eq!(
self.output().vertices().count(),
other.output().vertices().count(),
@ -49,7 +49,6 @@ impl ConnectExt for Handle<Face> {
})
.collect::<Vec<_>>();
let output = Solid::new([self, other].into_iter().chain(side_faces));
Handle::new(output)
Solid::new([self, other].into_iter().chain(side_faces))
}
}

View File

@ -37,7 +37,7 @@ impl SweepExt for Handle<Face> {
}
pub struct Sweep {
pub output: Handle<Solid>,
pub output: Solid,
}
impl Operation for Sweep {