Skip to content

Commit

Permalink
Remove unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 24, 2022
1 parent d8d7396 commit d2f6443
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/sweep/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ impl Sweep for Handle<Sketch> {
shells.push(shell);
}

Ok(Solid::builder(objects).with_shells(shells).build(objects))
Ok(Solid::builder().with_shells(shells).build(objects))
}
}
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/transform/solid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ impl TransformObject for Handle<Solid> {
shell.transform(transform, objects)
})
.collect::<Result<Vec<_>, _>>()?;
Ok(Solid::builder(objects).with_shells(faces).build(objects))
Ok(Solid::builder().with_shells(faces).build(objects))
}
}
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ mod tests {
fn solid() {
let objects = Objects::new();

let object = Solid::builder(&objects)
let object = Solid::builder()
.with_cube_from_edge_length(1., &objects)
.build(&objects);

Expand Down
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/objects/full/solid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::BTreeSet;

use crate::{
builder::SolidBuilder,
objects::{Face, Objects, Shell},
objects::{Face, Shell},
storage::Handle,
};

Expand All @@ -19,7 +19,7 @@ pub struct Solid {

impl Solid {
/// Build a `Solid` using [`SolidBuilder`]
pub fn builder(_: &Objects) -> SolidBuilder {
pub fn builder() -> SolidBuilder {
SolidBuilder {
shells: BTreeSet::new(),
}
Expand Down

0 comments on commit d2f6443

Please sign in to comment.