[librsvg/wip/aruiz/rust-pixbuf-loader: 65/69] pixbuf-loader: remove redundant to_string()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/wip/aruiz/rust-pixbuf-loader: 65/69] pixbuf-loader: remove redundant to_string()
- Date: Tue, 20 Sep 2022 22:44:03 +0000 (UTC)
commit 65c710f61076c739ce7a5426967d42e2f302b8ee
Author: Alberto Ruiz <aruiz redhat com>
Date: Mon Aug 8 13:16:54 2022 +0100
pixbuf-loader: remove redundant to_string()
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/722>
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]