From 4f6799a495dcfdecfaddfd2afbe4e8ed05370609 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 24 Feb 2025 07:38:09 +0200 Subject: [PATCH] remove extra clone --- src/gio/file_output_stream.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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))), } }, );