Skip to content

Commit

Permalink
fix elided lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Jan 7, 2025
1 parent fd45ad7 commit b99c62e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/parser/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Display for NaEdit {
}
}

impl<'a> Display for NoRef<'a, NaEdit> {
impl Display for NoRef<'_, NaEdit> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
NoRef(NaEdit::RefAlt {
Expand Down Expand Up @@ -309,7 +309,7 @@ impl Display for ProtLocEdit {
}
}

impl<'a> Display for NoRef<'a, ProtLocEdit> {
impl Display for NoRef<'_, ProtLocEdit> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.inner().fmt(f)
}
Expand All @@ -321,7 +321,7 @@ impl Display for CdsLocEdit {
}
}

impl<'a> Display for NoRef<'a, CdsLocEdit> {
impl Display for NoRef<'_, CdsLocEdit> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}{}", self.inner().loc, NoRef(&self.inner().edit))
}
Expand Down Expand Up @@ -362,7 +362,7 @@ impl Display for TxLocEdit {
}
}

impl<'a> Display for NoRef<'a, TxLocEdit> {
impl Display for NoRef<'_, TxLocEdit> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}{}", self.inner().loc, NoRef(&self.inner().edit))
}
Expand Down Expand Up @@ -399,7 +399,7 @@ impl Display for RnaLocEdit {
}
}

impl<'a> Display for NoRef<'a, RnaLocEdit> {
impl Display for NoRef<'_, RnaLocEdit> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}{}", self.inner().loc, NoRef(&self.inner().edit))
}
Expand Down Expand Up @@ -436,7 +436,7 @@ impl Display for GenomeLocEdit {
}
}

impl<'a> Display for NoRef<'a, GenomeLocEdit> {
impl Display for NoRef<'_, GenomeLocEdit> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}{}", self.inner().loc, NoRef(&self.inner().edit))
}
Expand Down Expand Up @@ -464,7 +464,7 @@ impl Display for MtLocEdit {
}
}

impl<'a> Display for NoRef<'a, MtLocEdit> {
impl Display for NoRef<'_, MtLocEdit> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}{}", self.inner().loc, NoRef(&self.inner().edit))
}
Expand Down Expand Up @@ -559,7 +559,7 @@ impl Display for HgvsVariant {
}
}

impl<'a> Display for NoRef<'a, HgvsVariant> {
impl Display for NoRef<'_, HgvsVariant> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
NoRef(HgvsVariant::CdsVariant {
Expand Down

0 comments on commit b99c62e

Please sign in to comment.