silent compile warning for deprecated method inside a deprecated method

This commit is contained in:
b1ek 2023-08-02 21:50:35 +10:00
parent ae88d81242
commit 13f17038ad
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ impl POWChallenge {
*/ */
#[deprecated] #[deprecated]
pub fn solve_singlethread(self: &POWChallenge) -> u128 { pub fn solve_singlethread(self: &POWChallenge) -> u128 {
// the method is deprecated itself
#[allow(deprecated)]
match self.chunk_solve(self.range.min, self.range.max) { match self.chunk_solve(self.range.min, self.range.max) {
Some(v) => v, Some(v) => v,
None => panic!("Number not found in range") None => panic!("Number not found in range")