summaryrefslogtreecommitdiffstats
path: root/vendor/gix-object/src/object/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-object/src/object/mod.rs')
-rw-r--r--vendor/gix-object/src/object/mod.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/vendor/gix-object/src/object/mod.rs b/vendor/gix-object/src/object/mod.rs
index c0f9dcd52..bebc1cc65 100644
--- a/vendor/gix-object/src/object/mod.rs
+++ b/vendor/gix-object/src/object/mod.rs
@@ -10,7 +10,7 @@ mod write {
/// Serialization
impl<'a> WriteTo for ObjectRef<'a> {
/// Write the contained object to `out` in the git serialization format.
- fn write_to(&self, out: impl io::Write) -> io::Result<()> {
+ fn write_to(&self, out: &mut dyn io::Write) -> io::Result<()> {
use crate::ObjectRef::*;
match self {
Tree(v) => v.write_to(out),
@@ -20,6 +20,10 @@ mod write {
}
}
+ fn kind(&self) -> Kind {
+ self.kind()
+ }
+
fn size(&self) -> usize {
use crate::ObjectRef::*;
match self {
@@ -29,16 +33,12 @@ mod write {
Tag(v) => v.size(),
}
}
-
- fn kind(&self) -> Kind {
- self.kind()
- }
}
/// Serialization
impl WriteTo for Object {
/// Write the contained object to `out` in the git serialization format.
- fn write_to(&self, out: impl io::Write) -> io::Result<()> {
+ fn write_to(&self, out: &mut dyn io::Write) -> io::Result<()> {
use crate::Object::*;
match self {
Tree(v) => v.write_to(out),
@@ -48,6 +48,10 @@ mod write {
}
}
+ fn kind(&self) -> Kind {
+ self.kind()
+ }
+
fn size(&self) -> usize {
use crate::Object::*;
match self {
@@ -57,10 +61,6 @@ mod write {
Tag(v) => v.size(),
}
}
-
- fn kind(&self) -> Kind {
- self.kind()
- }
}
}