Update src/write.rs

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This commit is contained in:
Chris Hennick 2024-07-15 09:04:41 -07:00 committed by GitHub
parent 57f01ba946
commit 43db4be237
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -1807,7 +1807,6 @@ fn clamp_opt<T: Ord + Copy, U: Ord + Copy + TryFrom<T>>(
value: T,
range: std::ops::RangeInclusive<U>,
) -> Option<T> {
use core::convert::TryInto;
if range.contains(&value.try_into().ok()?) {
Some(value)
} else {