Skip to content

Commit

Permalink
Fix rustdoc warnings when documenting private items
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Aug 24, 2022
1 parent afeb03a commit d708dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/ops/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(..))
}
Expand Down

0 comments on commit d708dff

Please sign in to comment.