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
commit 0c34e06e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}