Remove Spanned from mk_name_value_item_str and expr_to_spanned_string

This commit is contained in:
Vadim Petrochenkov 2019-08-15 01:56:44 +03:00
parent 1cdcea920e
commit 73d2da0894
8 changed files with 31 additions and 29 deletions

View file

@ -172,8 +172,8 @@ fn get_spans_of_pat_idents(src: &str) -> Vec<Span> {
impl<'a> crate::visit::Visitor<'a> for PatIdentVisitor {
fn visit_pat(&mut self, p: &'a ast::Pat) {
match p.node {
PatKind::Ident(_ , ref spannedident, _) => {
self.spans.push(spannedident.span.clone());
PatKind::Ident(_ , ref ident, _) => {
self.spans.push(ident.span.clone());
}
_ => {
crate::visit::walk_pat(self, p);