]> git.proxmox.com Git - cargo.git/commitdiff
Fix rustdoc warnings when documenting private items
authorWeihang Lo <weihanglo@users.noreply.github.com>
Wed, 24 Aug 2022 21:12:12 +0000 (22:12 +0100)
committerWeihang Lo <weihanglo@users.noreply.github.com>
Thu, 25 Aug 2022 11:19:49 +0000 (12:19 +0100)
src/cargo/ops/registry.rs

index b343a813f79ffd0548d247fc7aa9e1f2783c706a..e0aae14e0e89352bb7bf5bbb5ce859fdfd18b7a4 100644 (file)
@@ -48,13 +48,13 @@ pub enum RegistryConfig {
 impl RegistryConfig {
     /// Returns `true` if the credential is [`None`].
     ///
-    /// [`None`]: Credential::None
+    /// [`None`]: Self::None
     pub fn is_none(&self) -> bool {
         matches!(self, Self::None)
     }
     /// Returns `true` if the credential is [`Token`].
     ///
-    /// [`Token`]: Credential::Token
+    /// [`Token`]: Self::Token
     pub fn is_token(&self) -> bool {
         matches!(self, Self::Token(..))
     }