Skip to content

Commit

Permalink
Fix typing (again^2)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 12, 2024
1 parent fd16fea commit 753bd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/p0003.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ What is the largest prime factor of the number 600851475143 ?
use crate::primes::prime_factors;

pub fn p0003() -> u64 {

Check failure

Code scanning / clippy

mismatched types Error

mismatched types
return prime_factors(600851475143).map(|&x| x?).max();
return prime_factors(600851475143).map(|x| x?).max();

Check failure

Code scanning / clippy

the ? operator can only be applied to values that implement std::ops::Try Error

the ? operator can only be applied to values that implement std::ops::Try

Check failure

Code scanning / clippy

mismatched types Error

mismatched types
}

0 comments on commit 753bd1e

Please sign in to comment.