Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Dec 12, 2022
1 parent 022fd00 commit 88bbce9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/fj-kernel/src/builder/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ impl ShellBuilder {
.into_iter()
.zip(&surfaces)
.map(|(bottom, surface): (Partial<HalfEdge>, _)| {
let [_, from] = &bottom.read().vertices;

let from_surface = from.read().surface_form.clone();
let from_surface = {
let [_, from] = &bottom.read().vertices;
let from = from.read();
from.surface_form.clone()
};
let to = PartialSurfaceVertex {
position: Some(
from_surface.read().position.unwrap()
Expand Down

0 comments on commit 88bbce9

Please sign in to comment.