rustfmt: enable reorder imports.

This commit is contained in:
Jordan Petridis
2018-01-17 08:57:02 +02:00
parent e707087e72
commit 574cfae5c6
27 changed files with 108 additions and 111 deletions
+6 -6
View File
@@ -1,19 +1,19 @@
use gtk;
use glib;
use gio;
use gtk::prelude::*;
use gio::{ApplicationExt, ApplicationExtManual};
use glib;
use gtk;
use gtk::prelude::*;
use hammond_data::utils::checkup;
use hammond_data::{Podcast, Source};
use hammond_data::utils::checkup;
use headerbar::Header;
use content::Content;
use headerbar::Header;
use utils;
use std::sync::Arc;
use std::time::Duration;
use std::sync::mpsc::{channel, Receiver, Sender};
use std::time::Duration;
#[derive(Clone, Debug)]
pub enum Action {
+2 -2
View File
@@ -5,12 +5,12 @@ use gtk::prelude::*;
use hammond_data::Podcast;
use hammond_data::dbqueries;
use views::shows::ShowsPopulated;
use views::empty::EmptyView;
use views::episodes::EpisodesView;
use views::shows::ShowsPopulated;
use widgets::show::ShowWidget;
use app::Action;
use widgets::show::ShowWidget;
use std::sync::Arc;
use std::sync::mpsc::Sender;
+1 -1
View File
@@ -3,8 +3,8 @@ use gtk::prelude::*;
use hammond_data::Source;
use std::sync::mpsc::Sender;
use std::sync::Arc;
use std::sync::mpsc::Sender;
use app::Action;
use content::Content;
+4 -5
View File
@@ -1,7 +1,6 @@
// use hammond_data::Episode;
use hammond_data::dbqueries;
use hammond_downloader::downloader::get_episode;
use hammond_downloader::downloader::DownloadProgress;
use hammond_downloader::downloader::{get_episode, DownloadProgress};
use app::Action;
@@ -118,13 +117,13 @@ pub fn add(id: i32, directory: &str, sender: Sender<Action>) {
mod tests {
use super::*;
use hammond_data::database;
use hammond_data::utils::get_download_folder;
use hammond_data::{Episode, Source};
use hammond_data::database;
use hammond_data::dbqueries;
use hammond_data::utils::get_download_folder;
use std::path::Path;
use std::{thread, time};
use std::path::Path;
use std::sync::mpsc::channel;
#[test]
+8 -8
View File
@@ -1,19 +1,19 @@
use send_cell::SendCell;
use gdk_pixbuf::Pixbuf;
use send_cell::SendCell;
// use hammond_data::feed;
use hammond_data::pipeline;
use hammond_data::dbqueries;
use hammond_data::{PodcastCoverQuery, Source};
use hammond_data::dbqueries;
use hammond_data::pipeline;
use hammond_downloader::downloader;
use std::thread;
use std::sync::mpsc::Sender;
use std::sync::{Arc, Mutex, RwLock};
use std::collections::HashMap;
use std::sync::{Arc, Mutex, RwLock};
use std::sync::mpsc::Sender;
use std::thread;
use headerbar::Header;
use app::Action;
use headerbar::Header;
/// Update the rss feed(s) originating from `source`.
/// If `source` is None, Fetches all the `Source` entries in the database and updates them.
@@ -80,9 +80,9 @@ pub fn get_pixbuf_from_path(pd: &PodcastCoverQuery, size: u32) -> Option<Pixbuf>
#[cfg(test)]
mod tests {
use super::*;
use hammond_data::Source;
use hammond_data::dbqueries;
use super::*;
#[test]
// This test inserts an rss feed to your `XDG_DATA/hammond/hammond.db` so we make it explicit
+5 -5
View File
@@ -1,16 +1,16 @@
use chrono::prelude::*;
use gtk;
use gtk::prelude::*;
use chrono::prelude::*;
use hammond_data::dbqueries;
use hammond_data::EpisodeWidgetQuery;
use hammond_data::dbqueries;
use widgets::episode::EpisodeWidget;
use utils::get_pixbuf_from_path;
use app::Action;
use utils::get_pixbuf_from_path;
use widgets::episode::EpisodeWidget;
use std::sync::mpsc::Sender;
use std::sync::Arc;
use std::sync::mpsc::Sender;
#[derive(Debug, Clone)]
enum ListSplit {
+2 -2
View File
@@ -1,11 +1,11 @@
use gtk;
use gtk::prelude::*;
use hammond_data::dbqueries;
use hammond_data::Podcast;
use hammond_data::dbqueries;
use utils::get_pixbuf_from_path;
use app::Action;
use utils::get_pixbuf_from_path;
use std::sync::mpsc::Sender;
+6 -6
View File
@@ -1,23 +1,23 @@
use glib;
use gtk;
use gtk::prelude::*;
use chrono::prelude::*;
use gtk::prelude::*;
use open;
use humansize::{file_size_opts as size_opts, FileSize};
use open;
use hammond_data::dbqueries;
use hammond_data::{EpisodeWidgetQuery, Podcast};
use hammond_data::utils::get_download_folder;
use hammond_data::dbqueries;
use hammond_data::errors::*;
use hammond_data::utils::get_download_folder;
use app::Action;
use manager;
use std::sync::mpsc::Sender;
use std::sync::{Arc, Mutex};
use std::path::Path;
use std::sync::{Arc, Mutex};
use std::sync::mpsc::Sender;
lazy_static! {
static ref SIZE_OPTS: Arc<size_opts::FileSizeOpts> = {
+6 -6
View File
@@ -1,15 +1,15 @@
use gtk::prelude::*;
use gtk;
use open;
use dissolve;
use gtk;
use gtk::prelude::*;
use open;
use hammond_data::dbqueries;
use hammond_data::Podcast;
use hammond_data::dbqueries;
use hammond_data::utils::{delete_show, replace_extra_spaces};
use widgets::episode::episodes_listbox;
use utils::get_pixbuf_from_path;
use app::Action;
use utils::get_pixbuf_from_path;
use widgets::episode::episodes_listbox;
use std::sync::mpsc::Sender;
use std::thread;