aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/src/common.rs
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-01-17 12:34:41 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-01-17 12:34:41 +0200
commitbe5fcde4989ac883201a1895be519f63fa6e6dd4 (patch)
tree11f20d824fb573449908756d4ec7fb50615eda91 /log_db/src/common.rs
parent14b77c5cdfdcb1112deeacba010879037b456020 (diff)
Refactor interfaces to use more moves, remove log_reader_reverse
Diffstat (limited to 'log_db/src/common.rs')
-rw-r--r--log_db/src/common.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/log_db/src/common.rs b/log_db/src/common.rs
index 48c85ea..2adca5d 100644
--- a/log_db/src/common.rs
+++ b/log_db/src/common.rs
@@ -99,9 +99,9 @@ impl PartialOrd for LogKeySet {
impl LogKeySet {
/// Create a new LogKeySet with an initial LogKey.
/// The initial LogKey is required since LogKeySet must be non-empty.
- pub fn new_with_initial(key: &LogKey) -> Self {
+ pub fn new_with_initial(key: LogKey) -> Self {
let mut set = HashSet::new();
- set.insert(key.clone());
+ set.insert(key);
LogKeySet { set }
}