allow unused vars + cargo fmt

This commit is contained in:
wrk 2023-05-31 10:17:39 +02:00
parent 91efdbe29f
commit 9bdd68843b
2 changed files with 2 additions and 3 deletions

View File

@ -119,6 +119,7 @@ pub(crate) trait SystemParam {
arguments: &'r [&'r str],
factory: &'r Factory,
) -> Self::Item<'r>;
#[allow(unused_variables)]
fn valid(prefix: &IrcPrefix, arguments: &[&str], factory: &Factory) -> bool {
true
}

View File

@ -129,9 +129,7 @@ impl<'a, const N: usize> SystemParam for Arguments<'a, N> {
Arguments(&arguments[..N])
}
fn valid(_prefix: &IrcPrefix,
arguments: &[&str],
_factory: &Factory,) -> bool {
fn valid(_prefix: &IrcPrefix, arguments: &[&str], _factory: &Factory) -> bool {
arguments.len() == N
}
}