@@ -53,7 +53,7 @@ pub enum Kind {
53
53
Tag ,
54
54
}
55
55
/// A chunk of any [`data`][BlobRef::data].
56
- #[ derive( PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone ) ]
56
+ #[ derive( PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone , Copy ) ]
57
57
#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
58
58
pub struct BlobRef < ' a > {
59
59
/// The bytes themselves.
@@ -225,7 +225,7 @@ pub struct TreeRef<'a> {
225
225
}
226
226
227
227
/// A directory snapshot containing files (blobs), directories (trees) and submodules (commits), lazily evaluated.
228
- #[ derive( Default , PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone ) ]
228
+ #[ derive( Default , PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone , Copy ) ]
229
229
pub struct TreeRefIter < ' a > {
230
230
/// The directories and files contained in this tree.
231
231
data : & ' a [ u8 ] ,
@@ -249,7 +249,7 @@ impl Tree {
249
249
}
250
250
251
251
/// A borrowed object using a slice as backing buffer, or in other words a bytes buffer that knows the kind of object it represents.
252
- #[ derive( PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone ) ]
252
+ #[ derive( PartialEq , Eq , Debug , Hash , Ord , PartialOrd , Clone , Copy ) ]
253
253
pub struct Data < ' a > {
254
254
/// kind of object
255
255
pub kind : Kind ,
0 commit comments