1
0
mirror of https://github.com/shimunn/gitredditor.git synced 2023-11-17 18:42:43 +01:00

eliminated warnings

This commit is contained in:
shimunn 2019-05-08 23:29:10 +02:00
parent 990af9e484
commit ab6b6fcbbf
2 changed files with 3 additions and 8 deletions

View File

@ -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<u32>) {
let mut it: u32 = 0;
loop {

View File

@ -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 {