[niepce] rust: run clippy



commit 3e0e73b7bd75bef3cc5dfd7b1eee1bc9e4337088
Author: Hubert Figuière <hub figuiere net>
Date:   Sat Jul 4 18:38:13 2020 -0400

    rust: run clippy

 crates/npc-fwk/src/base/date.rs                    | 5 +----
 crates/npc-fwk/src/base/rgbcolour.rs               | 2 --
 crates/npc-fwk/src/toolkit/gdk_utils.rs            | 1 -
 crates/npc-fwk/src/toolkit/mimetype.rs             | 1 -
 crates/npc-fwk/src/toolkit/thumbnail.rs            | 2 --
 crates/npc-fwk/src/toolkit/widgets/rating_label.rs | 3 ---
 crates/npc-fwk/src/utils/exempi.rs                 | 3 +--
 crates/npc-fwk/src/utils/exiv2.rs                  | 5 +----
 crates/npc-fwk/src/utils/files.rs                  | 2 --
 9 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/crates/npc-fwk/src/base/date.rs b/crates/npc-fwk/src/base/date.rs
index 97680b9..bf400da 100644
--- a/crates/npc-fwk/src/base/date.rs
+++ b/crates/npc-fwk/src/base/date.rs
@@ -1,7 +1,7 @@
 /*
  * niepce - fwk/base/date.rs
  *
- * Copyright (C) 2017-2018 Hubert Figuière
+ * Copyright (C) 2017-2020 Hubert Figuière
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -17,12 +17,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-use libc;
 use std::ffi::CString;
 
-use chrono;
 use chrono::{Datelike, Timelike};
-use exempi;
 
 pub type Time = i64;
 pub type Date = chrono::DateTime<chrono::Utc>;
diff --git a/crates/npc-fwk/src/base/rgbcolour.rs b/crates/npc-fwk/src/base/rgbcolour.rs
index d4148ef..9425cd7 100644
--- a/crates/npc-fwk/src/base/rgbcolour.rs
+++ b/crates/npc-fwk/src/base/rgbcolour.rs
@@ -23,8 +23,6 @@ use std::ffi::CString;
 use std::num::ParseIntError;
 use std::str::FromStr;
 
-use gdk;
-
 #[repr(C)]
 #[derive(Clone, Default)]
 pub struct RgbColour {
diff --git a/crates/npc-fwk/src/toolkit/gdk_utils.rs b/crates/npc-fwk/src/toolkit/gdk_utils.rs
index 5ec701e..1d0fbcc 100644
--- a/crates/npc-fwk/src/toolkit/gdk_utils.rs
+++ b/crates/npc-fwk/src/toolkit/gdk_utils.rs
@@ -22,7 +22,6 @@ use std::cmp;
 use std::path::Path;
 use std::slice;
 
-use gdk_pixbuf;
 use gdk_pixbuf::prelude::*;
 use glib::translate::*;
 
diff --git a/crates/npc-fwk/src/toolkit/mimetype.rs b/crates/npc-fwk/src/toolkit/mimetype.rs
index fe8a9dd..ea6aa2a 100644
--- a/crates/npc-fwk/src/toolkit/mimetype.rs
+++ b/crates/npc-fwk/src/toolkit/mimetype.rs
@@ -17,7 +17,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-use gio;
 use gio::prelude::*;
 
 use std::convert::AsRef;
diff --git a/crates/npc-fwk/src/toolkit/thumbnail.rs b/crates/npc-fwk/src/toolkit/thumbnail.rs
index a05e6b6..f0f00ce 100644
--- a/crates/npc-fwk/src/toolkit/thumbnail.rs
+++ b/crates/npc-fwk/src/toolkit/thumbnail.rs
@@ -24,9 +24,7 @@ use std::ffi::CStr;
 use std::fs;
 use std::path::{Path, PathBuf};
 
-use gdk_pixbuf;
 use gdk_pixbuf::Colorspace;
-use glib;
 use glib::translate::*;
 
 use super::gdk_utils;
diff --git a/crates/npc-fwk/src/toolkit/widgets/rating_label.rs 
b/crates/npc-fwk/src/toolkit/widgets/rating_label.rs
index 414dd69..23ebe43 100644
--- a/crates/npc-fwk/src/toolkit/widgets/rating_label.rs
+++ b/crates/npc-fwk/src/toolkit/widgets/rating_label.rs
@@ -20,17 +20,14 @@
 use libc::c_int;
 use std::cell::Cell;
 
-use cairo;
 use gdk::prelude::*;
 use gdk_pixbuf::Pixbuf;
 use glib::subclass;
 use glib::subclass::prelude::*;
 use glib::translate::*;
 use glib::Type;
-use gtk;
 use gtk::prelude::*;
 use gtk::subclass::prelude::*;
-use gtk_sys;
 
 use once_cell::unsync::Lazy;
 
diff --git a/crates/npc-fwk/src/utils/exempi.rs b/crates/npc-fwk/src/utils/exempi.rs
index 8c0d1b0..0d7fd73 100644
--- a/crates/npc-fwk/src/utils/exempi.rs
+++ b/crates/npc-fwk/src/utils/exempi.rs
@@ -1,7 +1,7 @@
 /*
  * niepce - fwk/utils/exempi.rs
  *
- * Copyright (C) 2017-2019 Hubert Figuière
+ * Copyright (C) 2017-2020 Hubert Figuière
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,7 +24,6 @@ use std::io::prelude::*;
 use std::path::Path;
 
 use chrono::{DateTime, Utc};
-use exempi;
 use exempi::Xmp;
 
 use super::exiv2;
diff --git a/crates/npc-fwk/src/utils/exiv2.rs b/crates/npc-fwk/src/utils/exiv2.rs
index 5cb3d0a..c2c8afa 100644
--- a/crates/npc-fwk/src/utils/exiv2.rs
+++ b/crates/npc-fwk/src/utils/exiv2.rs
@@ -1,7 +1,7 @@
 /*
  * niepce - fwk/utils/exiv2.rs
  *
- * Copyright (C) 2018-2019 Hubert Figuière
+ * Copyright (C) 2018-2020 Hubert Figuière
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,9 +20,6 @@
 use multimap::MultiMap;
 use std::ffi::OsStr;
 
-use exempi;
-use rexiv2;
-
 use super::exempi::{
     xmp_date_from_exif, Flash, XmpMeta, NS_AUX, NS_EXIF, NS_EXIF_EX, NS_TIFF, NS_XAP,
 };
diff --git a/crates/npc-fwk/src/utils/files.rs b/crates/npc-fwk/src/utils/files.rs
index 80c94de..aa65698 100644
--- a/crates/npc-fwk/src/utils/files.rs
+++ b/crates/npc-fwk/src/utils/files.rs
@@ -21,9 +21,7 @@ use libc::c_char;
 use std::ffi::{CStr, CString};
 use std::path::{Path, PathBuf};
 
-use gio;
 use gio::prelude::*;
-use gio_sys;
 use glib::translate::*;
 
 use crate::toolkit::mimetype::{guess_type, MType};


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