Fix unused variable

This commit is contained in:
Jeong YunWon 2023-05-18 20:47:02 +09:00
parent 957eaa5a19
commit 54607fdc1f
2 changed files with 2 additions and 2 deletions

View file

@ -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>;

View file

@ -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()
}