From ab6b6fcbbf378f43404579353b35da468c4bafb7 Mon Sep 17 00:00:00 2001 From: shimunn <> Date: Wed, 8 May 2019 23:29:10 +0200 Subject: [PATCH] eliminated warnings --- src/main.rs | 6 ++---- src/model.rs | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9b9b9a5..4f54086 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,12 +5,9 @@ extern crate serde_derive; use git2::{Repository, Signature, Time as GitTime}; use serde_json::to_string_pretty; use std::error::Error; -use std::fmt; use std::fs::{create_dir_all, read_to_string, write as fs_write}; -use std::iter; -use std::iter::Chain; use std::iter::IntoIterator; -use std::path::{Path, PathBuf}; +use std::path::PathBuf; use std::thread; use std::time::Duration; use std::time::UNIX_EPOCH; @@ -140,6 +137,7 @@ fn update<'a>( Ok(updated) } +#[allow(dead_code)] fn poll(interval: Duration, count: Option) { let mut it: u32 = 0; loop { diff --git a/src/model.rs b/src/model.rs index 3d78f06..020c481 100644 --- a/src/model.rs +++ b/src/model.rs @@ -1,11 +1,8 @@ -use either::Either; -use serde::de; -use serde::{Deserialize, Deserializer, Serialize}; +use serde::{Deserialize, Deserializer}; use serde_json::Value; use std::error::Error; use std::fmt; use std::iter; -use std::iter::Chain; #[derive(PartialEq, Clone, Serialize, Deserialize, Debug)] pub struct Comment {