Use allow(unused_imports) instead of cfg(doc) for imports used only for intra-doc links
This commit is contained in:
parent
9b89d8a7a2
commit
25c034c52e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user