cargo fmt

parent c8dafbf7
Pipeline #60347 passed with stages
in 25 minutes and 9 seconds
use libc; use libc;
use std::ffi::CStr;
use std::borrow::Cow; use std::borrow::Cow;
use std::ffi::CStr;
use std::str; use std::str;
use glib::translate::*; use glib::translate::*;
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
use gio; use gio;
use gio::prelude::*; use gio::prelude::*;
use std::borrow::Cow;
use std::cell::RefCell; use std::cell::RefCell;
use std::mem; use std::mem;
use std::ptr; use std::ptr;
use std::rc::Rc; use std::rc::Rc;
use std::slice; use std::slice;
use std::str; use std::str;
use std::borrow::Cow;
use glib::translate::*; use glib::translate::*;
...@@ -17,8 +17,8 @@ use error::LoadingError; ...@@ -17,8 +17,8 @@ use error::LoadingError;
use handle::LoadFlags; use handle::LoadFlags;
use io::get_input_stream_for_loading; use io::get_input_stream_for_loading;
use property_bag::PropertyBag; use property_bag::PropertyBag;
use util::utf8_cstr;
use util::cstr; use util::cstr;
use util::utf8_cstr;
use xml::XmlState; use xml::XmlState;
use xml2::*; use xml2::*;
...@@ -57,8 +57,16 @@ unsafe extern "C" fn rsvg_sax_serror_cb(user_data: *mut libc::c_void, error: xml ...@@ -57,8 +57,16 @@ unsafe extern "C" fn rsvg_sax_serror_cb(user_data: *mut libc::c_void, error: xml
Cow::Borrowed("") Cow::Borrowed("")
}; };
let full_error_message = format!("{} code={} ({}) in {}:{}{}: {}", level_name, error.code, error.domain, let full_error_message = format!(
cstr(error.file), error.line, column, cstr(error.message)); "{} code={} ({}) in {}:{}{}: {}",
level_name,
error.code,
error.domain,
cstr(error.file),
error.line,
column,
cstr(error.message)
);
state.error(&full_error_message); state.error(&full_error_message);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment