diff --git a/core/src/types/storage.rs b/core/src/types/storage.rs index e94f1280b86..a4fd16977af 100644 --- a/core/src/types/storage.rs +++ b/core/src/types/storage.rs @@ -499,6 +499,7 @@ impl Key { /// Takes ownership of the key, appends a new segment to it, /// and returns the modified key. + #[must_use] pub fn with_segment(mut self, other: T) -> Self { self.segments.push(other.to_db_key()); self