Skip to content

Commit d5aa2ba

Browse files
committed
Fix clippy warnings
Signed-off-by: Jiahao XU <[email protected]>
1 parent ca8a373 commit d5aa2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix/src/repository/object.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ impl crate::Repository {
120120
}
121121

122122
fn write_object_inner(&self, buf: &[u8], kind: gix_object::Kind) -> Result<Id<'_>, object::write::Error> {
123-
let oid = gix_object::compute_hash(self.object_hash(), kind, &buf);
123+
let oid = gix_object::compute_hash(self.object_hash(), kind, buf);
124124
if self.objects.contains(&oid) {
125125
return Ok(oid.attach(self));
126126
}
127127

128128
self.objects
129-
.write_buf(kind, &buf)
129+
.write_buf(kind, buf)
130130
.map(|oid| oid.attach(self))
131131
.map_err(Into::into)
132132
}

0 commit comments

Comments
 (0)