diff --git a/der/src/writer/slice.rs b/der/src/writer/slice.rs index ebc0e61e1..082ca4775 100644 --- a/der/src/writer/slice.rs +++ b/der/src/writer/slice.rs @@ -31,7 +31,7 @@ impl<'a> SliceWriter<'a> { /// Encode a value which impls the [`Encode`] trait. pub fn encode(&mut self, encodable: &T) -> Result<()> { if self.is_failed() { - self.error(ErrorKind::Failed)?; + self.error(ErrorKind::Failed)? } encodable.encode(self).map_err(|e| {