Skip to content

Commit 25c034c

Browse files
Joshua Nelsonkofls
Joshua Nelson
authored andcommitted
Use allow(unused_imports) instead of cfg(doc) for imports used only for intra-doc links
1 parent 9b89d8a commit 25c034c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys_common/poison.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::fmt;
33
use crate::sync::atomic::{AtomicBool, Ordering};
44
use crate::thread;
55

6-
#[cfg(doc)]
6+
#[allow(unused_imports)] // for intra-doc links
77
use crate::sync::{Mutex, RwLock};
88

99
pub struct Flag {

0 commit comments

Comments
 (0)