Fix some Rustdoc links.

This commit is contained in:
Nick Mathewson 2022-03-29 11:17:34 -04:00
parent 6282df34fb
commit 3e92d30e49
4 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ impl FallbackDir {
FallbackDirBuilder::default()
}
/// Return a copy of this FallbackDir as a [`Guard`](crate::Guard)
/// Return a copy of this FallbackDir as a [`FirstHop`](crate::FirstHop)
pub fn as_guard(&self) -> crate::FirstHop {
crate::FirstHop {
id: FallbackId::from_chan_target(self).into(),

View File

@ -1,4 +1,4 @@
//! Declare the [`FallbackSet`] type, which is used to store a set of FallbackDir.
//! Declare the [`FallbackState`] type, which is used to store a set of FallbackDir.
use rand::seq::IteratorRandom;
use std::time::Instant;

View File

@ -572,7 +572,7 @@ impl Guard {
dir.weight_by_rsa_id(&self.id.0.rsa, tor_netdir::WeightRole::Guard)
}
/// Return a [`crate::Guard`] object to represent this guard.
/// Return a [`FirstHop`](crate::FirstHop) object to represent this guard.
pub(crate) fn get_external_rep(&self) -> crate::FirstHop {
crate::FirstHop {
id: self.id.clone().into(),

View File

@ -436,7 +436,7 @@ impl<R: Runtime> GuardMgr<R> {
/// Select a guard for a given [`GuardUsage`].
///
/// On success, we return a [`GuardId`] object to identify which
/// On success, we return a [`FirstHopId`] object to identify which
/// guard we have picked, a [`GuardMonitor`] object that the
/// caller can use to report whether its attempt to use the guard
/// succeeded or failed, and a [`GuardUsable`] future that the
@ -966,7 +966,7 @@ impl GuardMgrInner {
/// Helper: Select a fallback directory.
///
/// Called when we have no guard information to use. Return values are as
/// for [`select_guard()`]
/// for [`GuardMgr::select_guard()`]
fn select_fallback(
&self,
now: Instant,