[librsvg: 1/13] Remove unneeded imports




commit 3c430139d9807858c5f3215a182cfe2167ab8714
Author: Sven Neumann <sven svenfoo org>
Date:   Tue Aug 25 14:19:03 2020 +0200

    Remove unneeded imports
    
    See https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports

 librsvg/c_api.rs       | 1 -
 librsvg/color_utils.rs | 2 --
 librsvg/dpi.rs         | 2 --
 librsvg/messages.rs    | 1 -
 4 files changed, 6 deletions(-)
---
diff --git a/librsvg/c_api.rs b/librsvg/c_api.rs
index a2bb809d..e87fdf26 100644
--- a/librsvg/c_api.rs
+++ b/librsvg/c_api.rs
@@ -8,7 +8,6 @@ use std::str;
 use std::sync::Once;
 use std::{f64, i32};
 
-use cast;
 use gdk_pixbuf::Pixbuf;
 use glib::error::ErrorDomain;
 use url::Url;
diff --git a/librsvg/color_utils.rs b/librsvg/color_utils.rs
index 6b2132ba..046e4996 100644
--- a/librsvg/color_utils.rs
+++ b/librsvg/color_utils.rs
@@ -1,5 +1,3 @@
-use libc;
-
 use std::ffi::CStr;
 
 use rsvg_internals::{Color, Parse};
diff --git a/librsvg/dpi.rs b/librsvg/dpi.rs
index 69b79483..820f1da3 100644
--- a/librsvg/dpi.rs
+++ b/librsvg/dpi.rs
@@ -10,8 +10,6 @@
 //! This module encapsulates that behavior so that the `rsvg_internals` crate
 //! can always have immutable DPI values as intended.
 
-use rsvg_internals;
-
 // This is configurable at runtime
 const DEFAULT_DPI_X: f64 = 90.0;
 const DEFAULT_DPI_Y: f64 = 90.0;
diff --git a/librsvg/messages.rs b/librsvg/messages.rs
index 42491dcd..958ce1d0 100644
--- a/librsvg/messages.rs
+++ b/librsvg/messages.rs
@@ -1,6 +1,5 @@
 use glib::translate::*;
 use glib_sys::{g_log_structured_array, GLogField, G_LOG_LEVEL_CRITICAL, G_LOG_LEVEL_WARNING};
-use libc;
 
 /*
   G_LOG_LEVEL_CRITICAL          = 1 << 3,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]