From 1ae5dd8b16aed61958fd3ce488ed7fd459743652 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sun, 31 May 2020 15:17:16 -0600 Subject: Convert the crate to edition 2018 --- test/test.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'test/test.rs') diff --git a/test/test.rs b/test/test.rs index 5319c1d8..ac842b11 100644 --- a/test/test.rs +++ b/test/test.rs @@ -1,18 +1,9 @@ -extern crate bytes; -#[cfg(any(target_os = "android", target_os = "linux"))] -extern crate caps; #[macro_use] extern crate cfg_if; #[cfg_attr(not(target_os = "redox"), macro_use)] extern crate nix; #[macro_use] extern crate lazy_static; -extern crate libc; -extern crate rand; -#[cfg(target_os = "freebsd")] -extern crate sysctl; -extern crate tempfile; -extern crate semver; cfg_if! { if #[cfg(any(target_os = "android", target_os = "linux"))] { @@ -207,7 +198,7 @@ struct DirRestore<'a> { impl<'a> DirRestore<'a> { fn new() -> Self { - let guard = ::CWD_LOCK.write() + let guard = crate::CWD_LOCK.write() .expect("Lock got poisoned by another test"); DirRestore{ _g: guard, -- cgit v1.2.3