clippy: expl_impl_clone_on_copy (unsure)
@@ -8,7 +8,7 @@ use {raw, Error};
use util::Binding;
/// Unique identity of any object (commit, tree, blob, tag).
-#[derive(Copy)]
+#[derive(Copy, Clone)]
pub struct Oid {
raw: raw::git_oid,
}
@@ -116,10 +116,6 @@ impl Ord for Oid {
}
}
-impl Clone for Oid {
- fn clone(&self) -> Oid { *self }
-}
-
impl Hash for Oid {
fn hash<H: Hasher>(&self, into: &mut H) {
self.raw.id.hash(into)
