From be5fcde4989ac883201a1895be519f63fa6e6dd4 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 17 Jan 2025 12:34:41 +0200 Subject: Refactor interfaces to use more moves, remove log_reader_reverse --- log_db/src/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'log_db/src/common.rs') 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 } } -- cgit v1.3