diff options
Diffstat (limited to 'log_db/src/common.rs')
| -rw-r--r-- | log_db/src/common.rs | 4 |
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 } } |
