Skip to content

Commit ebbe4f9

Browse files
committed
Simplify the conversion from usize to u64
1 parent 8539a91 commit ebbe4f9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/full.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ where
6161
.map(|data| {
6262
u64::try_from(data.remaining())
6363
.map(SizeHint::with_exact)
64-
.unwrap_or_else(|_| {
65-
let mut hint = SizeHint::new();
66-
hint.set_lower(u64::MAX);
67-
hint
68-
})
64+
.unwrap()
6965
})
7066
.unwrap_or_else(|| SizeHint::with_exact(0))
7167
}

0 commit comments

Comments
 (0)