From 7b9e9a794ba9d6ba46c1f6262cafa4c2d9c94d7e Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Sun, 21 Jun 2020 22:14:04 +0200 Subject: [PATCH] Change MAX to max_value() --- src/reactor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reactor.rs b/src/reactor.rs index c141db2..114a326 100644 --- a/src/reactor.rs +++ b/src/reactor.rs @@ -813,7 +813,7 @@ mod sys { t.max(Duration::from_millis(1)) .as_millis() .try_into() - .unwrap_or(libc::c_int::MAX) + .unwrap_or(libc::c_int::max_value()) } } };