Skip to content

Commit beaebb5

Browse files
committed
[Clippy] Swap waker_clone_wake to use diagnostic item instead of path
1 parent 925c1c4 commit beaebb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/task/wake.rs

+1
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ impl<'a> ContextBuilder<'a> {
414414
/// [`Wake`]: ../../alloc/task/trait.Wake.html
415415
#[repr(transparent)]
416416
#[stable(feature = "futures_api", since = "1.36.0")]
417+
#[cfg_attr(not(test), rustc_diagnostic_item = "Waker")]
417418
pub struct Waker {
418419
waker: RawWaker,
419420
}

0 commit comments

Comments
 (0)