From c23a457e72abe608715ac76f076f47dc42af07a5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 20:31:44 +0200 Subject: Merging upstream version 1.74.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/gix-object/src/object/mod.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'vendor/gix-object/src/object/mod.rs') 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() - } } } -- cgit v1.2.3