Skip to content

Commit

Permalink
Add missing inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Aug 11, 2024
1 parent f206445 commit d841c78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toml-span/src/de_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ impl<'de> TableHelper<'de> {
/// Note that if the key exists but deserialization fails, an error will be
/// appended and if [`Self::finalize`] is called it will return that error
/// along with any others that occurred
#[inline]
pub fn optional<T: Deserialize<'de>>(&mut self, name: &'static str) -> Option<T> {
self.optional_s(name).map(|v| v.value)
}
Expand Down

0 comments on commit d841c78

Please sign in to comment.