@@ -15,13 +15,13 @@ impl Control {
1515
1616 /// Returns the contents of the register as raw bits
1717 #[ inline]
18- pub fn bits ( & self ) -> u32 {
18+ pub fn bits ( self ) -> u32 {
1919 self . bits
2020 }
2121
2222 /// Thread mode privilege level
2323 #[ inline]
24- pub fn npriv ( & self ) -> Npriv {
24+ pub fn npriv ( self ) -> Npriv {
2525 if self . bits & ( 1 << 0 ) == ( 1 << 0 ) {
2626 Npriv :: Unprivileged
2727 } else {
@@ -41,7 +41,7 @@ impl Control {
4141
4242 /// Currently active stack pointer
4343 #[ inline]
44- pub fn spsel ( & self ) -> Spsel {
44+ pub fn spsel ( self ) -> Spsel {
4545 if self . bits & ( 1 << 1 ) == ( 1 << 1 ) {
4646 Spsel :: Psp
4747 } else {
@@ -61,7 +61,7 @@ impl Control {
6161
6262 /// Whether context floating-point is currently active
6363 #[ inline]
64- pub fn fpca ( & self ) -> Fpca {
64+ pub fn fpca ( self ) -> Fpca {
6565 if self . bits & ( 1 << 2 ) == ( 1 << 2 ) {
6666 Fpca :: Active
6767 } else {
@@ -92,14 +92,14 @@ pub enum Npriv {
9292impl Npriv {
9393 /// Is in privileged thread mode?
9494 #[ inline]
95- pub fn is_privileged ( & self ) -> bool {
96- * self == Npriv :: Privileged
95+ pub fn is_privileged ( self ) -> bool {
96+ self == Npriv :: Privileged
9797 }
9898
9999 /// Is in unprivileged thread mode?
100100 #[ inline]
101- pub fn is_unprivileged ( & self ) -> bool {
102- * self == Npriv :: Unprivileged
101+ pub fn is_unprivileged ( self ) -> bool {
102+ self == Npriv :: Unprivileged
103103 }
104104}
105105
@@ -115,14 +115,14 @@ pub enum Spsel {
115115impl Spsel {
116116 /// Is MSP the current stack pointer?
117117 #[ inline]
118- pub fn is_msp ( & self ) -> bool {
119- * self == Spsel :: Msp
118+ pub fn is_msp ( self ) -> bool {
119+ self == Spsel :: Msp
120120 }
121121
122122 /// Is PSP the current stack pointer?
123123 #[ inline]
124- pub fn is_psp ( & self ) -> bool {
125- * self == Spsel :: Psp
124+ pub fn is_psp ( self ) -> bool {
125+ self == Spsel :: Psp
126126 }
127127}
128128
@@ -138,14 +138,14 @@ pub enum Fpca {
138138impl Fpca {
139139 /// Is a floating-point context active?
140140 #[ inline]
141- pub fn is_active ( & self ) -> bool {
142- * self == Fpca :: Active
141+ pub fn is_active ( self ) -> bool {
142+ self == Fpca :: Active
143143 }
144144
145145 /// Is a floating-point context not active?
146146 #[ inline]
147- pub fn is_not_active ( & self ) -> bool {
148- * self == Fpca :: NotActive
147+ pub fn is_not_active ( self ) -> bool {
148+ self == Fpca :: NotActive
149149 }
150150}
151151
0 commit comments