From 2648fc81f091081f916937ffd4f012bfc92132c4 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 28 Oct 2022 20:58:44 +0200 Subject: [PATCH] Refactor --- crates/fj-kernel/src/partial/maybe_partial.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/fj-kernel/src/partial/maybe_partial.rs b/crates/fj-kernel/src/partial/maybe_partial.rs index 3501b768c..647038d4e 100644 --- a/crates/fj-kernel/src/partial/maybe_partial.rs +++ b/crates/fj-kernel/src/partial/maybe_partial.rs @@ -143,9 +143,7 @@ impl MaybePartial { /// Access the vertices pub fn vertices(&self) -> [MaybePartial; 2] { match self { - Self::Full(full) => { - full.vertices().clone().map(|vertex| vertex.into()) - } + Self::Full(full) => full.vertices().clone().map(Into::into), Self::Partial(partial) => partial.vertices.clone(), } }