We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae7d16 commit bde33d8Copy full SHA for bde33d8
src/write/encoder.rs
@@ -230,7 +230,9 @@ impl<W: Write> EncoderWriter<W> {
230
/// trait. Note that the inner writer might be in an error state or have an incomplete
231
/// base64 string written to it.
232
pub fn into_inner(mut self) -> W {
233
- self.delegate.take().unwrap()
+ self.delegate
234
+ .take()
235
+ .expect("Encoder has already had finish() called")
236
}
237
238
0 commit comments