mirror of https://github.com/stjepang/smol
Change MAX to max_value()
This commit is contained in:
parent
6bbd398331
commit
7b9e9a794b
|
@ -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())
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue