Skip to content

Commit

Permalink
Update core/src/types/storage.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Zemanovic <[email protected]>
  • Loading branch information
sug0 and tzemanovic authored Sep 19, 2023
1 parent 6267a4c commit fd2965d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/types/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: KeySeg>(mut self, other: T) -> Self {
self.segments.push(other.to_db_key());
self
Expand Down

0 comments on commit fd2965d

Please sign in to comment.