[librsvg/wip/aruiz/rust-pixbuf-loader] pixbuf-loader: remove redundant to_string()
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/wip/aruiz/rust-pixbuf-loader] pixbuf-loader: remove redundant to_string()
- Date: Mon, 8 Aug 2022 12:17:00 +0000 (UTC)
commit 7f03f661bef51283f7dfd3c1c9cb24acc9671c35
Author: Alberto Ruiz <aruiz redhat com>
Date: Mon Aug 8 13:16:54 2022 +0100
pixbuf-loader: remove redundant to_string()
gdk-pixbuf-loader/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk-pixbuf-loader/src/lib.rs b/gdk-pixbuf-loader/src/lib.rs
index e2ce5e680..383aa5eaf 100644
--- a/gdk-pixbuf-loader/src/lib.rs
+++ b/gdk-pixbuf-loader/src/lib.rs
@@ -115,7 +115,7 @@ unsafe extern "C" fn stop_load(user_data: glib_sys::gpointer, error: *mut *mut G
let pixbuf = match _inner_stop_load(&ctx) {
Ok(r) => r,
Err(e) => {
- let gerr = glib::Error::new(gdk_pixbuf::PixbufError::Failed, &e.to_string());
+ let gerr = glib::Error::new(gdk_pixbuf::PixbufError::Failed, &e);
*error = gerr.into_raw();
return false.into_glib();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]