Skip to content

Commit 7022db0

Browse files
committed
Fix unused variable
1 parent 37412d8 commit 7022db0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ast/asdl_rs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def visitModule(self, mod, depth):
505505
self.will_map_user(user)
506506
}
507507
#[cfg(not(feature = "all-nodes-with-ranges"))]
508-
fn will_map_user_cfg(&mut self, user: &crate::EmptyRange<U>) -> crate::EmptyRange<Self::TargetU> {
508+
fn will_map_user_cfg(&mut self, _user: &crate::EmptyRange<U>) -> crate::EmptyRange<Self::TargetU> {
509509
crate::EmptyRange::default()
510510
}
511511
fn map_user(&mut self, user: U, context: Self::UserContext) -> Result<Self::TargetU, Self::Error>;

ast/src/gen/fold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub trait Fold<U> {
1313
#[cfg(not(feature = "all-nodes-with-ranges"))]
1414
fn will_map_user_cfg(
1515
&mut self,
16-
user: &crate::EmptyRange<U>,
16+
_user: &crate::EmptyRange<U>,
1717
) -> crate::EmptyRange<Self::TargetU> {
1818
crate::EmptyRange::default()
1919
}

0 commit comments

Comments
 (0)