Remove Spanned from mk_name_value_item_str and expr_to_spanned_string
This commit is contained in:
parent
1cdcea920e
commit
73d2da0894
8 changed files with 31 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue