aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2024-02-05 13:46:59 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2024-02-05 13:46:59 +0000
commite51f0072817c36c1a2416e9b6507e798fc321bd6 (patch)
tree6d77dcbdab90fcf20364650208e4c3e1195583fb
parent55e1a5deba5afbf17b61bd3ae51b46fad346de35 (diff)
downloadarti-e51f0072817c36c1a2416e9b6507e798fc321bd6.tar.gz
arti-e51f0072817c36c1a2416e9b6507e798fc321bd6.zip
tor-keymgr: Fix two docs links
(These were broken by recent MRs so don't need a CHANGELOG update in !1950.)
-rw-r--r--crates/tor-keymgr/src/err.rs2
-rw-r--r--crates/tor-keymgr/src/mgr.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/tor-keymgr/src/err.rs b/crates/tor-keymgr/src/err.rs
index c0ea2366b..a7ea0ba81 100644
--- a/crates/tor-keymgr/src/err.rs
+++ b/crates/tor-keymgr/src/err.rs
@@ -23,7 +23,7 @@ pub enum Error {
#[error("{0}")]
Keystore(#[from] Arc<dyn KeystoreError>),
- /// An error returned when the [`KeyMgr`] is asked to generate a key that already exists.
+ /// An error returned when the [`KeyMgr`](crate::KeyMgr) is asked to generate a key that already exists.
///
/// Note that because there is no locking of the keystore,
/// this situation is not reliably detected
diff --git a/crates/tor-keymgr/src/mgr.rs b/crates/tor-keymgr/src/mgr.rs
index 467d0d201..5892a58c6 100644
--- a/crates/tor-keymgr/src/mgr.rs
+++ b/crates/tor-keymgr/src/mgr.rs
@@ -32,7 +32,7 @@ use tor_error::{bad_api_usage, internal};
/// order to implement this safely without locking, the key store operations (get,
/// insert, remove) will need to be atomic.
///
-/// **Note**: [`KeyMgr::generate`] and [`Keymgr::get_or_generate`] should **not** be used
+/// **Note**: [`KeyMgr::generate`] and [`KeyMgr::get_or_generate`] should **not** be used
/// concurrently with any other `KeyMgr` operation that mutates the same key
/// (i.e. a key with the same `ArtiPath`), because
/// their outcome depends on whether the selected key store