diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
commit | c23a457e72abe608715ac76f076f47dc42af07a5 (patch) | |
tree | 2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /vendor/gix-object/src/object/mod.rs | |
parent | Releasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip |
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix-object/src/object/mod.rs')
-rw-r--r-- | vendor/gix-object/src/object/mod.rs | 20 |
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() - } } } |