Use constant in QueryChannelRange::end_blocknum

Clarifies u32 max value used as the default.
This commit is contained in:
bmancini55 2021-03-10 06:46:44 -05:00
parent deffb4a3d8
commit 1809ef199e

View file

@ -1690,7 +1690,7 @@ impl QueryChannelRange {
pub fn end_blocknum(&self) -> u32 {
match self.first_blocknum.checked_add(self.number_of_blocks) {
Some(block) => block,
None => 0xffffffff,
None => u32::max_value(),
}
}
}