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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue