Browse Source

More Rust cleanups

Ian Goldberg 3 years ago
parent
commit
e633b88ac9
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/lib.rs

+ 5 - 3
src/lib.rs

@@ -296,7 +296,7 @@ impl BridgeAuth {
             + cred.invites_issued * self.lox_priv.x[6])
             * cred.P;
 
-        return Q == cred.Q;
+        Q == cred.Q
     }
 
     #[cfg(test)]
@@ -311,7 +311,8 @@ impl BridgeAuth {
             + cred.from_bucket * self.migration_priv.x[2]
             + cred.to_bucket * self.migration_priv.x[3])
             * cred.P;
-        return Q == cred.Q;
+
+        Q == cred.Q
     }
 
     #[cfg(test)]
@@ -325,7 +326,8 @@ impl BridgeAuth {
             + cred.date * self.reachability_priv.x[1]
             + cred.bucket * self.reachability_priv.x[2])
             * cred.P;
-        return Q == cred.Q;
+
+        Q == cred.Q
     }
 }