Skip to content

Commit

Permalink
tracing: reverse one more conversion (#1338)
Browse files Browse the repository at this point in the history
This was not fixed in #1335 because the `Into<Id> for Span` conversion
was removed in v0.2.x.

This should make clippy happy on v0.1.x.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw authored Mar 31, 2021
1 parent 18bd9f3 commit ebd3ee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracing/src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1312,9 +1312,9 @@ impl<'a> From<&'a Span> for Option<Id> {
}
}

impl Into<Option<Id>> for Span {
fn into(self) -> Option<Id> {
self.inner.as_ref().map(Inner::id)
impl From<Span> for Option<Id> {
fn from(span: Span) -> Self {
span.inner.as_ref().map(Inner::id)
}
}

Expand Down

0 comments on commit ebd3ee9

Please sign in to comment.