aboutsummaryrefslogtreecommitdiff
path: root/common/object
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-01-16 17:19:53 +0100
committermetamuffin <metamuffin@disroot.org>2026-01-16 17:19:53 +0100
commit578a171868130e5e3fcf1ecf66dec073ee796353 (patch)
treebdd91dc876e0b0101d9557a1109d91fdeadde494 /common/object
parentce2b34851d38dc28d6ffbbb4fe563e226acb7445 (diff)
downloadjellything-578a171868130e5e3fcf1ecf66dec073ee796353.tar
jellything-578a171868130e5e3fcf1ecf66dec073ee796353.tar.bz2
jellything-578a171868130e5e3fcf1ecf66dec073ee796353.tar.zst
a
Diffstat (limited to 'common/object')
-rw-r--r--common/object/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/object/src/lib.rs b/common/object/src/lib.rs
index 5637dd6..17a68d7 100644
--- a/common/object/src/lib.rs
+++ b/common/object/src/lib.rs
@@ -198,6 +198,7 @@ impl<'a> Object<'a> {
}
}
#[must_use]
+ #[inline]
pub fn insert<T: ValueStore>(&self, tag: TypedTag<T>, value: T) -> ObjectBuffer {
self.insert_multi(tag, &[value])
}