Use MAX instead of deprecated max_value()
continuous-integration/drone the build is running Details

This commit is contained in:
Olivier 'reivilibre' 2022-01-13 20:18:27 +00:00
parent 680c8669d6
commit 2a32184a7e
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ impl Responder {
.continuation_tokens
.lock()
.or(Err(anyhow!("Mutex poisoned")))?;
let batch_token = (0u16..u16::max_value())
let batch_token = (0u16..u16::MAX)
.into_iter()
.find(|id| !map.contains_key(&id))
.expect("No ID found");