Change MAX to max_value()

This commit is contained in:
Stjepan Glavina 2020-06-21 22:14:04 +02:00
parent 6bbd398331
commit 7b9e9a794b
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}
}
};