Skip to content

Commit c9221ed

Browse files
committed
run cargo clippy and cargo fmt
1 parent f44ddb5 commit c9221ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/number_theory/euler_totient.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ mod tests {
9797

9898
#[test]
9999
fn test_prime_property() {
100-
// For any prime p, φ(p) = p - 1
101-
let primes = vec![2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31];
102-
for p in primes {
103-
assert_eq!(euler_totient(p), p - 1, "φ({p}) should be {}", p - 1);
100+
// For any prime p, φ(p) = p - 1
101+
let primes = vec![2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31];
102+
for p in primes {
103+
assert_eq!(euler_totient(p), p - 1, "φ({p}) should be {}", p - 1);
104+
}
104105
}
105106
}
106-
}

0 commit comments

Comments
 (0)