Skip to content

Commit 358fac4

Browse files
committed
Improve box_clone()
1 parent 5cef4fc commit 358fac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl DynDigest for Digest {
246246
}
247247

248248
fn box_clone(&self) -> Box<dyn DynDigest> {
249-
Box::new(self.clone())
249+
Box::new(*self)
250250
}
251251
}
252252

0 commit comments

Comments
 (0)