Cease with the 2015-style #[macro_use]s

This commit is contained in:
Félix Saparelli 2021-07-22 01:01:11 +12:00
parent 66caedf978
commit d8fb70c454
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474
8 changed files with 8 additions and 8 deletions

View file

@ -13,6 +13,7 @@
//! .expect("mission failed");
//! ```
use derive_builder::Builder;
use std::{path::PathBuf, time::Duration};
use crate::run::OnBusyUpdate;

View file

@ -1,4 +1,5 @@
use globset::{GlobBuilder, GlobSet, GlobSetBuilder};
use log::debug;
use std::borrow::ToOwned;
use std::fs;

View file

@ -1,4 +1,5 @@
use globset::{GlobBuilder, GlobSet, GlobSetBuilder};
use log::debug;
use std::collections::HashSet;
use std::fs;
use std::io;

View file

@ -8,13 +8,6 @@
#![doc(html_logo_url = "https://watchexec.github.io/logo:watchexec.svg")]
#![warn(clippy::unwrap_used)]
#[macro_use]
extern crate derive_builder;
#[macro_use]
extern crate log;
#[macro_use]
extern crate lazy_static;
pub mod config;
pub mod error;
mod gitignore;

View file

@ -2,6 +2,7 @@ use crate::error;
use crate::gitignore::Gitignore;
use crate::ignore::Ignore;
use globset::{Glob, GlobSet, GlobSetBuilder};
use log::debug;
use std::path::Path;
pub struct NotificationFilter {

View file

@ -1,6 +1,7 @@
#[cfg(unix)]
use command_group::UnixChildExt;
use command_group::{CommandGroup, GroupChild};
use log::{debug, info, warn};
use std::{
collections::HashMap,

View file

@ -1,7 +1,7 @@
use std::sync::Mutex;
type CleanupFn = Box<dyn Fn(self::Signal) + Send>;
lazy_static! {
lazy_static::lazy_static! {
static ref CLEANUP: Mutex<Option<CleanupFn>> = Mutex::new(None);
}
@ -106,6 +106,7 @@ pub fn install_handler<F>(handler: F)
where
F: Fn(self::Signal) + 'static + Send + Sync,
{
use log::debug;
use nix::sys::signal::*;
use std::thread;

View file

@ -1,3 +1,4 @@
use log::debug;
use notify::{raw_watcher, PollWatcher, RecommendedWatcher, RecursiveMode};
use std::convert::TryFrom;
use std::path::PathBuf;