diff options
author | Andrew Gallant <jamslam@gmail.com> | 2023-09-25 18:24:08 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2023-10-09 20:29:52 -0400 |
commit | 3ad7a0d95e04d16e49f94b83a22f8942a234068f (patch) | |
tree | 31b4596d413733cca68554a85afb41d3da6710fc /crates/ignore | |
parent | 82d3183a04e2fac6e270c99a05229b8e1232584d (diff) |
crates: remove hard-coded links
And use rustdoc's native intra-crate links. So much nicer.
Diffstat (limited to 'crates/ignore')
-rw-r--r-- | crates/ignore/src/walk.rs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/crates/ignore/src/walk.rs b/crates/ignore/src/walk.rs index fdeea93c..eead9ffa 100644 --- a/crates/ignore/src/walk.rs +++ b/crates/ignore/src/walk.rs @@ -38,9 +38,7 @@ impl DirEntry { } /// The full path that this entry represents. - /// Analogous to [`path`], but moves ownership of the path. - /// - /// [`path`]: struct.DirEntry.html#method.path + /// Analogous to [`DirEntry::path`], but moves ownership of the path. pub fn into_path(self) -> PathBuf { self.dent.into_path() } @@ -1127,10 +1125,10 @@ impl WalkState { } } -/// A builder for constructing a visitor when using -/// [`WalkParallel::visit`](struct.WalkParallel.html#method.visit). The builder -/// will be called for each thread started by `WalkParallel`. The visitor -/// returned from each builder is then called for every directory entry. +/// A builder for constructing a visitor when using [`WalkParallel::visit`]. +/// The builder will be called for each thread started by `WalkParallel`. The +/// visitor returned from each builder is then called for every directory +/// entry. pub trait ParallelVisitorBuilder<'s> { /// Create per-thread `ParallelVisitor`s for `WalkParallel`. fn build(&mut self) -> Box<dyn ParallelVisitor + 's>; @@ -1147,9 +1145,8 @@ impl<'a, 's, P: ParallelVisitorBuilder<'s>> ParallelVisitorBuilder<'s> /// Receives files and directories for the current thread. /// /// Setup for the traversal can be implemented as part of -/// [`ParallelVisitorBuilder::build`](trait.ParallelVisitorBuilder.html#tymethod.build). -/// Teardown when traversal finishes can be implemented by implementing the -/// `Drop` trait on your traversal type. +/// [`ParallelVisitorBuilder::build`]. Teardown when traversal finishes can be +/// implemented by implementing the `Drop` trait on your traversal type. pub trait ParallelVisitor: Send { /// Receives files and directories for the current thread. This is called /// once for every directory entry visited by traversal. |