mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
Fix unused variable
This commit is contained in:
parent
957eaa5a19
commit
54607fdc1f
2 changed files with 2 additions and 2 deletions
|
@ -505,7 +505,7 @@ class FoldTraitDefVisitor(EmitVisitor):
|
|||
self.will_map_user(user)
|
||||
}
|
||||
#[cfg(not(feature = "all-nodes-with-ranges"))]
|
||||
fn will_map_user_cfg(&mut self, user: &crate::EmptyRange<U>) -> crate::EmptyRange<Self::TargetU> {
|
||||
fn will_map_user_cfg(&mut self, _user: &crate::EmptyRange<U>) -> crate::EmptyRange<Self::TargetU> {
|
||||
crate::EmptyRange::default()
|
||||
}
|
||||
fn map_user(&mut self, user: U, context: Self::UserContext) -> Result<Self::TargetU, Self::Error>;
|
||||
|
|
|
@ -13,7 +13,7 @@ pub trait Fold<U> {
|
|||
#[cfg(not(feature = "all-nodes-with-ranges"))]
|
||||
fn will_map_user_cfg(
|
||||
&mut self,
|
||||
user: &crate::EmptyRange<U>,
|
||||
_user: &crate::EmptyRange<U>,
|
||||
) -> crate::EmptyRange<Self::TargetU> {
|
||||
crate::EmptyRange::default()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue