[librsvg/wip/subclass] cargo fmt
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/wip/subclass] cargo fmt
- Date: Mon, 18 Feb 2019 16:18:53 +0000 (UTC)
commit c0ee1909541c59e93f309ecacee4b5d5ca5f8f3e
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Feb 18 10:07:57 2019 -0600
cargo fmt
rsvg_internals/src/util.rs | 2 +-
rsvg_internals/src/xml2_load.rs | 16 ++++++++++++----
2 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/rsvg_internals/src/util.rs b/rsvg_internals/src/util.rs
index 28c7913d..2e8adfd6 100644
--- a/rsvg_internals/src/util.rs
+++ b/rsvg_internals/src/util.rs
@@ -1,7 +1,7 @@
use libc;
-use std::ffi::CStr;
use std::borrow::Cow;
+use std::ffi::CStr;
use std::str;
use glib::translate::*;
diff --git a/rsvg_internals/src/xml2_load.rs b/rsvg_internals/src/xml2_load.rs
index e32f8097..951d8353 100644
--- a/rsvg_internals/src/xml2_load.rs
+++ b/rsvg_internals/src/xml2_load.rs
@@ -3,13 +3,13 @@
use gio;
use gio::prelude::*;
+use std::borrow::Cow;
use std::cell::RefCell;
use std::mem;
use std::ptr;
use std::rc::Rc;
use std::slice;
use std::str;
-use std::borrow::Cow;
use glib::translate::*;
@@ -17,8 +17,8 @@ use error::LoadingError;
use handle::LoadFlags;
use io::get_input_stream_for_loading;
use property_bag::PropertyBag;
-use util::utf8_cstr;
use util::cstr;
+use util::utf8_cstr;
use xml::XmlState;
use xml2::*;
@@ -57,8 +57,16 @@ unsafe extern "C" fn rsvg_sax_serror_cb(user_data: *mut libc::c_void, error: xml
Cow::Borrowed("")
};
- let full_error_message = format!("{} code={} ({}) in {}:{}{}: {}", level_name, error.code, error.domain,
- cstr(error.file), error.line, column, cstr(error.message));
+ let full_error_message = format!(
+ "{} code={} ({}) in {}:{}{}: {}",
+ level_name,
+ error.code,
+ error.domain,
+ cstr(error.file),
+ error.line,
+ column,
+ cstr(error.message)
+ );
state.error(&full_error_message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]