Skip to content

Commit

Permalink
correct write result signature
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdb committed Oct 29, 2024
1 parent cd8dd30 commit 03e1361
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/directb2s/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,10 @@ pub fn read<R: BufRead>(reader: R) -> Result<DirectB2SData, DeError> {
from_reader(reader)
}

pub fn write<W: std::fmt::Write>(data: &DirectB2SData, writer: &mut W) -> Result<(), DeError> {
pub fn write<W: std::fmt::Write>(
data: &DirectB2SData,
writer: &mut W,
) -> Result<WriteResult, SeError> {
let mut ser = Serializer::new(writer);
ser.indent(' ', 2);
data.serialize(ser)
Expand Down

0 comments on commit 03e1361

Please sign in to comment.