From 0dce256f80c4fa2cfb8e634aeb4e8896877aed69 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Thu, 26 Mar 2020 13:26:40 +0100 Subject: [PATCH] stricter warning leves --- asyncgit/src/lib.rs | 3 ++- scopetime/src/lib.rs | 2 +- src/poll.rs | 3 --- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/asyncgit/src/lib.rs b/asyncgit/src/lib.rs index a1aa57d6..f5e9bb9a 100644 --- a/asyncgit/src/lib.rs +++ b/asyncgit/src/lib.rs @@ -1,7 +1,8 @@ //! asyncgit #![forbid(unsafe_code)] -#![warn(missing_docs)] +#![forbid(missing_docs)] + mod diff; mod status; pub mod sync; diff --git a/scopetime/src/lib.rs b/scopetime/src/lib.rs index 5b7474a7..b481e0d8 100644 --- a/scopetime/src/lib.rs +++ b/scopetime/src/lib.rs @@ -1,7 +1,7 @@ //! simple macro to insert a scope based runtime measure that logs the result #![forbid(unsafe_code)] -#![warn(missing_docs)] +#![forbid(missing_docs)] use log::trace; use std::time::Instant; diff --git a/src/poll.rs b/src/poll.rs index 8b994755..c7ebc54d 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -19,10 +19,7 @@ static MIN_POLL_DURATION: Duration = Duration::from_millis(5); static MAX_BATCHING_DURATION: Duration = Duration::from_millis(25); static TICK_DURATION: Duration = Duration::from_secs(5); -/// we run 2 threads feeding us with update events. /// -/// Thread 1: -/// We will pub fn start_polling_thread() -> Receiver> { let (tx, rx) = unbounded();