Skip to content

Commit 33a8fb3

Browse files
committed
thanks clippy
1 parent a98d298 commit 33a8fb3

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

git-object/src/blob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{Blob, BlobRef};
55
impl<'a> crate::WriteTo for BlobRef<'a> {
66
/// Write the blobs data to `out` verbatim.
77
fn write_to(&self, mut out: impl io::Write) -> io::Result<()> {
8-
out.write_all(&self.data)
8+
out.write_all(self.data)
99
}
1010
}
1111

git-object/src/commit/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ impl<'a> crate::WriteTo for CommitRef<'a> {
5050
}
5151
}
5252
out.write_all(NL)?;
53-
out.write_all(&self.message)
53+
out.write_all(self.message)
5454
}
5555
}

git-object/src/tag/write.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ impl<'a> crate::WriteTo for TagRef<'a> {
5959

6060
if !self.message.is_empty() {
6161
out.write_all(NL)?;
62-
out.write_all(&self.message)?;
62+
out.write_all(self.message)?;
6363
}
64-
if let Some(ref message) = self.pgp_signature {
64+
if let Some(message) = self.pgp_signature {
6565
out.write_all(NL)?;
6666
out.write_all(message)?;
6767
}

git-object/src/tree/write.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ use std::io;
33
use bstr::{BString, ByteSlice};
44
use quick_error::quick_error;
55

6-
use crate::tree::EntryRef;
7-
use crate::{encode::SPACE, tree::Entry, Tree, TreeRef};
6+
use crate::{
7+
encode::SPACE,
8+
tree::{Entry, EntryRef},
9+
Tree, TreeRef,
10+
};
811

912
quick_error! {
1013
/// The Error used in [`Tree::write_to()`].

0 commit comments

Comments
 (0)