From d841c787ca89f71fbf29d6585ad89e8dba06fbee Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Sun, 11 Aug 2024 09:59:11 +0200 Subject: [PATCH] Add missing inline --- toml-span/src/de_helpers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/toml-span/src/de_helpers.rs b/toml-span/src/de_helpers.rs index 163b68f..3cb7aa1 100644 --- a/toml-span/src/de_helpers.rs +++ b/toml-span/src/de_helpers.rs @@ -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>(&mut self, name: &'static str) -> Option { self.optional_s(name).map(|v| v.value) }