Skip to content

Commit

Permalink
Never inline map and tuple deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey authored and sosthene-nitrokey committed Oct 7, 2024
1 parent da58de3 commit 6e243dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
})
}

#[inline(never)]
fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value>
where
V: Visitor<'de>,
Expand All @@ -719,6 +720,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
self.deserialize_tuple(len, visitor)
}

#[inline(never)]
fn deserialize_map<V>(self, visitor: V) -> Result<V::Value>
where
V: Visitor<'de>,
Expand Down

0 comments on commit 6e243dd

Please sign in to comment.