mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 19:28:01 +00:00
Merge pull request #1106 from khuey/inlines
Inline various deserialization helper methods.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user