commit | cefc788ca3d7e86cb0d494239d61ba63ffd03533 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Mar 09 19:47:16 2019 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Mar 09 19:47:16 2019 -0800 |
tree | 7f3b94578701045f4224f22a4b841bdb415e72a0 | |
parent | 19ce0e7df40027e6af6854193384a126150bd2ef [diff] [blame] |
Access single span via the Deref impl
diff --git a/src/token.rs b/src/token.rs index a636b16..04d6967 100644 --- a/src/token.rs +++ b/src/token.rs
@@ -503,7 +503,7 @@ #[cfg(feature = "printing")] impl ToTokens for Underscore { fn to_tokens(&self, tokens: &mut TokenStream) { - tokens.append(Ident::new("_", self.spans[0])); + tokens.append(Ident::new("_", self.span)); } }