From 2a32184a7e27e7909fe262b83b43ad735d757eed Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Thu, 13 Jan 2022 20:18:27 +0000 Subject: [PATCH] Use MAX instead of deprecated max_value() --- yama/src/remote/responder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yama/src/remote/responder.rs b/yama/src/remote/responder.rs index 58c8525..54bfe3d 100644 --- a/yama/src/remote/responder.rs +++ b/yama/src/remote/responder.rs @@ -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");