Skip to content

Commit 71bf808

Browse files
committed
feat: add Default implementation to Tree
1 parent ee80b2b commit 71bf808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-object/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ pub struct TreeRefIter<'a> {
232232
}
233233

234234
/// A mutable Tree, containing other trees, blobs or commits.
235-
#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone)]
235+
#[derive(Default, PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone)]
236236
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
237237
pub struct Tree {
238238
/// The directories and files contained in this tree. They must be and remain sorted by [`filename`][tree::Entry::filename].

0 commit comments

Comments
 (0)