Merge pull request #1106 from khuey/inlines

Inline various deserialization helper methods.
This commit is contained in:
David Tolnay
2017-12-02 15:57:07 -08:00
committed by GitHub
+1
View File
@@ -198,6 +198,7 @@ pub mod size_hint {
helper(iter.size_hint())
}
#[inline]
pub fn cautious(hint: Option<usize>) -> usize {
cmp::min(hint.unwrap_or(0), 4096)
}