Simplify implementation of TranslateExt

This commit is contained in:
Hanno Braun 2025-02-18 20:18:21 +01:00
parent 89d13dee02
commit 580c713514

View File

@ -12,10 +12,7 @@ pub trait TranslateExt {
fn translate(self, offset: impl Into<Vector<3>>) -> Translate;
}
impl<T> TranslateExt for &T
where
T: OperationOutput<Face>,
{
impl TranslateExt for &Face {
fn translate(self, offset: impl Into<Vector<3>>) -> Translate {
let offset = offset.into();