stricter warning leves

This commit is contained in:
Stephan Dilly 2020-03-26 13:26:40 +01:00
parent 8d42a88eab
commit 0dce256f80
3 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,8 @@
//! asyncgit
#![forbid(unsafe_code)]
#![warn(missing_docs)]
#![forbid(missing_docs)]
mod diff;
mod status;
pub mod sync;

View File

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

View File

@ -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<Vec<QueueEvent>> {
let (tx, rx) = unbounded();