diff --git a/src/gio/file_output_stream.rs b/src/gio/file_output_stream.rs index ce5fac1..9a62667 100644 --- a/src/gio/file_output_stream.rs +++ b/src/gio/file_output_stream.rs @@ -61,9 +61,7 @@ pub fn from_stream_async( (on_chunk, on_complete), ); } - Err((bytes, e)) => { - on_complete(Err(Error::OutputStream(bytes.clone(), e))) - } + Err((b, e)) => on_complete(Err(Error::OutputStream(b, e))), } }, );