Skip to content

Commit

Permalink
cargo clippy --fix for the latest lints. (obi1kenobi#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Oct 16, 2024
1 parent 931628b commit ad4552c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rustdoc_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(crate) enum CrateSource<'a> {
},
}

impl<'a> CrateSource<'a> {
impl CrateSource<'_> {
pub(crate) fn name(&self) -> anyhow::Result<&str> {
Ok(match self {
Self::Registry { crate_, .. } => &crate_.name,
Expand Down Expand Up @@ -304,7 +304,7 @@ pub(crate) struct CrateDataForRustdoc<'a> {
pub(crate) build_target: Option<&'a str>,
}

impl<'a> CrateType<'a> {
impl CrateType<'_> {
pub(crate) fn type_name(&self) -> &'static str {
match self {
CrateType::Current => "current",
Expand Down

0 comments on commit ad4552c

Please sign in to comment.