Skip to content

Commit

Permalink
Fix compatibility with rustc pre-1.46
Browse files Browse the repository at this point in the history
    error: unexpected token: `0.0`
       --> src/runtime.rs:186:18
        |
    186 |             self.0.0
        |             -----^^^
        |             |    |
        |             |    unexpected token
        |             help: try parenthesizing the first index: `(self.0).0`
  • Loading branch information
dtolnay committed Mar 13, 2023
1 parent 76b38b2 commit f3f7140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ mod get_span {
impl GetSpan<Span> {
#[inline]
pub fn __into_span(self) -> Span {
self.0.0
(self.0).0
}
}

Expand Down

0 comments on commit f3f7140

Please sign in to comment.