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/traits.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/traits.rs')
-rw-r--r-- | vendor/gix-object/src/traits.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/gix-object/src/traits.rs b/vendor/gix-object/src/traits.rs index 193cd78c3..c0c4adee2 100644 --- a/vendor/gix-object/src/traits.rs +++ b/vendor/gix-object/src/traits.rs @@ -5,7 +5,7 @@ use crate::Kind; /// Writing of objects to a `Write` implementation pub trait WriteTo { /// Write a representation of this instance to `out`. - fn write_to(&self, out: impl std::io::Write) -> std::io::Result<()>; + fn write_to(&self, out: &mut dyn std::io::Write) -> std::io::Result<()>; /// Returns the type of this object. fn kind(&self) -> Kind; @@ -29,15 +29,15 @@ impl<T> WriteTo for &T where T: WriteTo, { - fn write_to(&self, out: impl Write) -> std::io::Result<()> { + fn write_to(&self, out: &mut dyn Write) -> std::io::Result<()> { <T as WriteTo>::write_to(self, out) } - fn size(&self) -> usize { - <T as WriteTo>::size(self) - } - fn kind(&self) -> Kind { <T as WriteTo>::kind(self) } + + fn size(&self) -> usize { + <T as WriteTo>::size(self) + } } |