diff --git a/ciborium/src/ser/mod.rs b/ciborium/src/ser/mod.rs index 0488d72..ff3d118 100644 --- a/ciborium/src/ser/mod.rs +++ b/ciborium/src/ser/mod.rs @@ -495,6 +495,5 @@ where W::Error: core::fmt::Debug, { let mut encoder = Serializer::from(writer); - value.serialize(&mut encoder)?; - Ok(encoder.0.flush()?) + value.serialize(&mut encoder) }