tree-wide: fix rustdoc warnings, add some links

This commit is contained in:
Jade 2021-08-03 20:57:31 -07:00
parent 8a8431133e
commit e3a67ccec6
7 changed files with 23 additions and 20 deletions

View file

@ -197,12 +197,12 @@ pub enum AttrKind {
}
impl AttrKind {
/// Returns `true` if the attr_kind is [`Inner`].
/// Returns `true` if the attr_kind is [`Inner`](Self::Inner).
pub fn is_inner(&self) -> bool {
matches!(self, Self::Inner)
}
/// Returns `true` if the attr_kind is [`Outer`].
/// Returns `true` if the attr_kind is [`Outer`](Self::Outer).
pub fn is_outer(&self) -> bool {
matches!(self, Self::Outer)
}