allow unused vars + cargo fmt
This commit is contained in:
parent
91efdbe29f
commit
9bdd68843b
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user