From d7bb3a57658435a6463ddb578fa1c3dc6663195b Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 17 Mar 2022 13:46:18 +0100 Subject: [PATCH] Restore alphabetic ordering in `syntax` module This makes things easier to find. --- fj/src/syntax.rs | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/fj/src/syntax.rs b/fj/src/syntax.rs index 7c809c713..63d08ee89 100644 --- a/fj/src/syntax.rs +++ b/fj/src/syntax.rs @@ -1,3 +1,24 @@ +pub trait Group { + fn group(&self, other: &Other) -> crate::Group + where + Other: Clone + Into; +} + +impl Group for T +where + T: Clone + Into, +{ + fn group(&self, other: &Other) -> crate::Group + where + Other: Clone + Into, + { + let a = self.clone().into(); + let b = other.clone().into(); + + crate::Group { a, b } + } +} + pub trait Rotate { /// Create a rotation /// @@ -69,24 +90,3 @@ where } } } - -pub trait Group { - fn group(&self, other: &Other) -> crate::Group - where - Other: Clone + Into; -} - -impl Group for T -where - T: Clone + Into, -{ - fn group(&self, other: &Other) -> crate::Group - where - Other: Clone + Into, - { - let a = self.clone().into(); - let b = other.clone().into(); - - crate::Group { a, b } - } -}