Skip to content

Commit d4fb411

Browse files
committed
Fix rustdoc::redundant_explicit_links warning
``` error: redundant explicit link target --> futures-executor/src/local_pool.rs:314:25 | 314 | /// Use a [`LocalPool`](LocalPool) if you need finer-grained control over | ----------- ^^^^^^^^^ explicit target is redundant | | | because label contains path that resolves to same destination | = note: when a link's destination is not specified, the label is used to resolve intra-doc links = note: `-D rustdoc::redundant-explicit-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::redundant_explicit_links)]` help: remove explicit link target | 314 | /// Use a [`LocalPool`] if you need finer-grained control over | ~~~~~~~~~~~~~ error: redundant explicit link target --> futures-executor/src/local_pool.rs:37:33 | 37 | /// A handle to a [`LocalPool`](LocalPool) that implements | ----------- ^^^^^^^^^ explicit target is redundant | | | because label contains path that resolves to same destination | = note: when a link's destination is not specified, the label is used to resolve intra-doc links help: remove explicit link target | 37 | /// A handle to a [`LocalPool`] that implements | ~~~~~~~~~~~~~ ```
1 parent 3488f46 commit d4fb411

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

futures-executor/src/local_pool.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ pub struct LocalPool {
3434
incoming: Rc<Incoming>,
3535
}
3636

37-
/// A handle to a [`LocalPool`](LocalPool) that implements
38-
/// [`Spawn`](futures_task::Spawn).
37+
/// A handle to a [`LocalPool`] that implements [`Spawn`](futures_task::Spawn).
3938
#[derive(Clone, Debug)]
4039
pub struct LocalSpawner {
4140
incoming: Weak<Incoming>,
@@ -311,8 +310,7 @@ impl Default for LocalPool {
311310
///
312311
/// This function will block the caller until the given future has completed.
313312
///
314-
/// Use a [`LocalPool`](LocalPool) if you need finer-grained control over
315-
/// spawned tasks.
313+
/// Use a [`LocalPool`] if you need finer-grained control over spawned tasks.
316314
pub fn block_on<F: Future>(f: F) -> F::Output {
317315
pin_mut!(f);
318316
run_executor(|cx| f.as_mut().poll(cx))

0 commit comments

Comments
 (0)