silent compile warning for deprecated method inside a deprecated method
This commit is contained in:
parent
ae88d81242
commit
13f17038ad
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue