Skip to content

Commit

Permalink
Clippy lints.
Browse files Browse the repository at this point in the history
Also restored standard module use to where it was.
  • Loading branch information
tfpf committed Feb 16, 2024
1 parent 30a35dd commit dabdbf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
#![allow(clippy::match_overlapping_arm)]
#![allow(clippy::new_without_default)]

use std::io::Write;

pub mod solutions;
pub mod utils;

#[cfg(test)]
mod tests;

use std::io::Write;

/// Execute the solution (if available) of the specified problem. Also measure
/// its running time.
///
Expand Down
2 changes: 1 addition & 1 deletion src/solutions/distinct_powers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::utils;
/// * `primes` - Prime numbers to use to calculate the exponent.
///
/// -> Exponent.
fn exponent(mut num: i64, primes: &Vec<i64>) -> i64 {
fn exponent(mut num: i64, primes: &[i64]) -> i64 {
// Calculate the greatest exponent of every prime in the given number.
let mut exponents = vec![0i64; primes.len()];
let mut gcd = 0;
Expand Down

0 comments on commit dabdbf4

Please sign in to comment.