Use allow(unused_imports) instead of cfg(doc) for imports used only for intra-doc links

This commit is contained in:
Joshua Nelson 2020-08-23 18:51:28 -04:00 committed by Surya Midatala
parent 9b89d8a7a2
commit 25c034c52e

View File

@ -3,7 +3,7 @@ use crate::fmt;
use crate::sync::atomic::{AtomicBool, Ordering};
use crate::thread;
#[cfg(doc)]
#[allow(unused_imports)] // for intra-doc links
use crate::sync::{Mutex, RwLock};
pub struct Flag {