summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-08-09 13:07:46 +0200
committerMatthias Beyer <mail@beyermatthias.de>2022-08-09 13:27:13 +0200
commit745e6b6d9981f3acabe2488f352cebb9227b5031 (patch)
tree64fda6f6ca0860ce8a8f620bc4fb3e243e7ebefe
parent334a838d78435b1aa40496dbfccd4e8b986f11a7 (diff)
Use anonymous variable name to silence warnings
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/failable/filter.rs2
-rw-r--r--src/filter.rs2
-rw-r--r--src/iter.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/failable/filter.rs b/src/failable/filter.rs
index 63e9ff0..f2654f8 100644
--- a/src/failable/filter.rs
+++ b/src/failable/filter.rs
@@ -33,7 +33,7 @@ pub trait FailableFilter<N> {
type Error: Sized;
/// The function which is used to filter something
- fn filter(&self, &N) -> Result<bool, Self::Error>;
+ fn filter(&self, _: &N) -> Result<bool, Self::Error>;
/// Helper to invert a filter.
///
diff --git a/src/filter.rs b/src/filter.rs
index 78c9e9c..a74be28 100644
--- a/src/filter.rs
+++ b/src/filter.rs
@@ -42,7 +42,7 @@ impl<I, T: Fn(&I) -> bool> Filter<I> for T {
/// The filter trait
pub trait Filter<N> {
/// The function which is used to filter something
- fn filter(&self, &N) -> bool;
+ fn filter(&self, _: &N) -> bool;
/// Helper to invert a filter.
///
diff --git a/src/iter.rs b/src/iter.rs
index 5ac77c2..fbd7fd3 100644
--- a/src/iter.rs
+++ b/src/iter.rs
@@ -75,7 +75,7 @@ where
I: Iterator<Item = Result<T, E>>,
F: Filter<T>,
{
- fn filter_oks(self, F) -> FilterOksIter<T, E, I, F>;
+ fn filter_oks(self, _: F) -> FilterOksIter<T, E, I, F>;
}
impl<T, E, I, F> FilterOks<T, E, I, F> for I
@@ -121,7 +121,7 @@ where
I: Iterator<Item = Result<T, E>>,
F: Filter<E>,
{
- fn filter_errs(self, F) -> FilterErrIter<T, E, I, F>;
+ fn filter_errs(self, _: F) -> FilterErrIter<T, E, I, F>;
}
impl<T, E, I, F> FilterErr<T, E, I, F> for I