From 83354ab24bf86f08b16fc67701427bce876d5745 Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Sun, 25 Jun 2017 14:21:23 +0800 Subject: [PATCH] Fixed up some unused-imports warnings --- src/book/bookitem.rs | 1 - src/book/mod.rs | 2 +- src/utils/fs.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/book/bookitem.rs b/src/book/bookitem.rs index d8f43fae..7fe7ab55 100644 --- a/src/book/bookitem.rs +++ b/src/book/bookitem.rs @@ -2,7 +2,6 @@ use serde::{Serialize, Serializer}; use serde::ser::SerializeStruct; use std::path::PathBuf; -use errors::*; #[derive(Debug, Clone)] pub enum BookItem { diff --git a/src/book/mod.rs b/src/book/mod.rs index fa902648..d8b75774 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -4,7 +4,7 @@ pub use self::bookitem::{BookItem, BookItems}; use std::path::{Path, PathBuf}; use std::fs::{self, File}; -use std::io::{self, Read, Write}; +use std::io::{Read, Write}; use std::process::Command; use {theme, parse, utils}; diff --git a/src/utils/fs.rs b/src/utils/fs.rs index 0bb99976..da45611d 100644 --- a/src/utils/fs.rs +++ b/src/utils/fs.rs @@ -1,6 +1,6 @@ use std::path::{Path, PathBuf, Component}; use errors::*; -use std::io::{self, Read}; +use std::io::Read; use std::fs::{self, File}; /// Takes a path to a file and try to read the file into a String