mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 18:08:26 +00:00
Simplify implementation of TranslateExt
This commit is contained in:
parent
89d13dee02
commit
580c713514
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user