Skip to content

Commit 4390c32

Browse files
committed
thanks clippy
1 parent de8abe6 commit 4390c32

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

git-index/src/write.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Extensions {
4747
/// The options for use when [writing an index][State::write_to()].
4848
///
4949
/// Note that default options write either index V2 or V3 depending on the content of the entries.
50-
#[derive(Debug, Clone, Copy)]
50+
#[derive(Debug, Default, Clone, Copy)]
5151
pub struct Options {
5252
/// The hash kind to use when writing the index file.
5353
///
@@ -58,15 +58,6 @@ pub struct Options {
5858
pub extensions: Extensions,
5959
}
6060

61-
impl Default for Options {
62-
fn default() -> Self {
63-
Self {
64-
hash_kind: git_hash::Kind::default(),
65-
extensions: Default::default(),
66-
}
67-
}
68-
}
69-
7061
impl State {
7162
/// Serialize this instance to `out` with [`options`][Options].
7263
pub fn write_to(

0 commit comments

Comments
 (0)