From 03e1361d96a53eba975f5399e3f5cfb54d0fd949 Mon Sep 17 00:00:00 2001 From: Francis De Brabandere Date: Tue, 29 Oct 2024 11:34:52 +0100 Subject: [PATCH] correct write result signature --- src/directb2s/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/directb2s/mod.rs b/src/directb2s/mod.rs index a7e6e68..79e77db 100644 --- a/src/directb2s/mod.rs +++ b/src/directb2s/mod.rs @@ -599,7 +599,10 @@ pub fn read(reader: R) -> Result { from_reader(reader) } -pub fn write(data: &DirectB2SData, writer: &mut W) -> Result<(), DeError> { +pub fn write( + data: &DirectB2SData, + writer: &mut W, +) -> Result { let mut ser = Serializer::new(writer); ser.indent(' ', 2); data.serialize(ser)