[librsvg: 25/25] *.rs - Clean up the imports a bit
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 25/25] *.rs - Clean up the imports a bit
- Date: Fri, 2 Feb 2018 00:30:43 +0000 (UTC)
commit 2f178ec76b06f051d137807dcb92e663872d9fca
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Feb 1 18:26:28 2018 -0600
*.rs - Clean up the imports a bit
rust/src/bbox.rs | 4 ++--
rust/src/color.rs | 7 +++----
rust/src/gradient.rs | 8 ++++----
rust/src/marker.rs | 3 +--
rust/src/node.rs | 8 ++++----
rust/src/opacity.rs | 4 ++--
rust/src/paint_server.rs | 2 +-
rust/src/parsers.rs | 8 ++++----
rust/src/path_builder.rs | 2 +-
rust/src/pattern.rs | 8 ++++----
rust/src/shapes.rs | 2 +-
rust/src/stop.rs | 6 +++---
rust/src/structure.rs | 4 ++--
rust/src/transform.rs | 8 ++++----
rust/src/viewbox.rs | 6 +++---
15 files changed, 39 insertions(+), 41 deletions(-)
---
diff --git a/rust/src/bbox.rs b/rust/src/bbox.rs
index 8439912..907ac10 100644
--- a/rust/src/bbox.rs
+++ b/rust/src/bbox.rs
@@ -1,5 +1,5 @@
-use ::cairo;
-use ::glib_sys;
+use cairo;
+use glib_sys;
use glib::translate::*;
use cairo::MatrixTrait;
diff --git a/rust/src/color.rs b/rust/src/color.rs
index 4c098f8..470d9be 100644
--- a/rust/src/color.rs
+++ b/rust/src/color.rs
@@ -1,7 +1,5 @@
-use ::cssparser;
-use ::libc;
-
-use ::glib::translate::*;
+use cssparser;
+use libc;
use parsers::Parse;
use parsers::ParseError;
@@ -175,6 +173,7 @@ pub extern fn rsvg_css_parse_color (string: *const libc::c_char,
#[cfg(test)]
mod tests {
use super::*;
+ use glib::translate::*;
fn parse (s: &str) -> ColorSpec {
// ColorSpec::from (Color::parse (s, (AllowInherit::Yes, AllowCurrentColor::Yes)))
diff --git a/rust/src/gradient.rs b/rust/src/gradient.rs
index 08d0c68..eb49ed0 100644
--- a/rust/src/gradient.rs
+++ b/rust/src/gradient.rs
@@ -1,7 +1,7 @@
-use ::cairo;
-use ::glib_sys;
-use ::glib::translate::*;
-use ::libc;
+use cairo;
+use glib_sys;
+use glib::translate::*;
+use libc;
use std::cell::RefCell;
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 5e12ef8..b979f05 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -1,5 +1,4 @@
-use ::glib::translate::*;
-use ::libc;
+use libc;
use std::cell::Cell;
use std::f64::consts::*;
diff --git a/rust/src/node.rs b/rust/src/node.rs
index be76e51..443dc80 100644
--- a/rust/src/node.rs
+++ b/rust/src/node.rs
@@ -1,7 +1,7 @@
-use ::downcast_rs::*;
-use ::glib_sys;
-use ::glib::translate::*;
-use ::libc;
+use downcast_rs::*;
+use glib_sys;
+use glib::translate::*;
+use libc;
use std::rc::{Rc, Weak};
use std::cell::RefCell;
diff --git a/rust/src/opacity.rs b/rust/src/opacity.rs
index dd813f4..8a6bffb 100644
--- a/rust/src/opacity.rs
+++ b/rust/src/opacity.rs
@@ -1,8 +1,8 @@
/// Struct to represent an inheritable opacity property
/// <https://www.w3.org/TR/SVG/masking.html#OpacityProperty>
-use ::cssparser::{Parser, ParserInput, Token};
-use ::libc;
+use cssparser::{Parser, ParserInput, Token};
+use libc;
use std::str::FromStr;
diff --git a/rust/src/paint_server.rs b/rust/src/paint_server.rs
index b624644..85eb948 100644
--- a/rust/src/paint_server.rs
+++ b/rust/src/paint_server.rs
@@ -1,4 +1,4 @@
-use ::cairo;
+use cairo;
use error::*;
use parsers::Parse;
diff --git a/rust/src/parsers.rs b/rust/src/parsers.rs
index 1742994..ad03c44 100644
--- a/rust/src/parsers.rs
+++ b/rust/src/parsers.rs
@@ -1,7 +1,7 @@
-use ::libc;
-use ::cssparser::{Parser, ParserInput, Token, BasicParseError};
-use ::glib::translate::*;
-use ::glib_sys;
+use libc;
+use cssparser::{Parser, ParserInput, Token, BasicParseError};
+use glib::translate::*;
+use glib_sys;
use std::f64::consts::*;
use std::mem;
diff --git a/rust/src/path_builder.rs b/rust/src/path_builder.rs
index 9e11e2b..f715b88 100644
--- a/rust/src/path_builder.rs
+++ b/rust/src/path_builder.rs
@@ -1,4 +1,4 @@
-use ::cairo_sys;
+use cairo_sys;
use std::f64;
use std::f64::consts::*;
diff --git a/rust/src/pattern.rs b/rust/src/pattern.rs
index 76b32c1..4d52c28 100644
--- a/rust/src/pattern.rs
+++ b/rust/src/pattern.rs
@@ -1,7 +1,7 @@
-use ::cairo;
-use ::glib_sys;
-use ::glib::translate::*;
-use ::libc;
+use cairo;
+use glib_sys;
+use glib::translate::*;
+use libc;
use std::cell::RefCell;
use std::rc::*;
diff --git a/rust/src/shapes.rs b/rust/src/shapes.rs
index a1a48c1..e0d1535 100644
--- a/rust/src/shapes.rs
+++ b/rust/src/shapes.rs
@@ -1,4 +1,4 @@
-use ::libc;
+use libc;
use std::cell::RefCell;
use std::cell::Cell;
diff --git a/rust/src/stop.rs b/rust/src/stop.rs
index b8c2374..e29a72c 100644
--- a/rust/src/stop.rs
+++ b/rust/src/stop.rs
@@ -1,6 +1,6 @@
-use ::libc;
-use ::cssparser;
-use ::glib::translate::*;
+use libc;
+use cssparser;
+use glib::translate::*;
use std::cell::Cell;
diff --git a/rust/src/structure.rs b/rust/src/structure.rs
index 2122c41..841b617 100644
--- a/rust/src/structure.rs
+++ b/rust/src/structure.rs
@@ -1,5 +1,5 @@
-use ::glib::translate::*;
-use ::libc;
+use glib::translate::*;
+use libc;
use std::cell::RefCell;
use std::cell::Cell;
diff --git a/rust/src/transform.rs b/rust/src/transform.rs
index edb4218..1c93b94 100644
--- a/rust/src/transform.rs
+++ b/rust/src/transform.rs
@@ -1,7 +1,7 @@
-use ::cairo;
-use ::glib::translate::*;
-use ::glib_sys;
-use ::libc;
+use cairo;
+use glib::translate::*;
+use glib_sys;
+use libc;
use std::f64::consts::*;
diff --git a/rust/src/viewbox.rs b/rust/src/viewbox.rs
index af1bb87..8ee4958 100644
--- a/rust/src/viewbox.rs
+++ b/rust/src/viewbox.rs
@@ -1,6 +1,6 @@
-use ::cairo;
-use ::glib_sys;
-use ::glib;
+use cairo;
+use glib_sys;
+use glib;
use error::*;
use parsers;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]