浏览代码

Removed un-needed clone on lock_timeout

Because it's a Primative, it doesn't need to be cloned.
Apollo 4 月之前
父节点
当前提交
fb7135e0cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/shared.rs

+ 1 - 1
src/shared.rs

@@ -12,7 +12,7 @@ impl<T> Clone for Shared<T> {
     fn clone(&self) -> Self {
         Self {
             data: self.data.clone(),
-            lock_timeout: self.lock_timeout.clone(),
+            lock_timeout: self.lock_timeout,
         }
     }
 }