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],
|
arguments: &'r [&'r str],
|
||||||
factory: &'r Factory,
|
factory: &'r Factory,
|
||||||
) -> Self::Item<'r>;
|
) -> Self::Item<'r>;
|
||||||
|
#[allow(unused_variables)]
|
||||||
fn valid(prefix: &IrcPrefix, arguments: &[&str], factory: &Factory) -> bool {
|
fn valid(prefix: &IrcPrefix, arguments: &[&str], factory: &Factory) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
@ -129,9 +129,7 @@ impl<'a, const N: usize> SystemParam for Arguments<'a, N> {
|
|||||||
Arguments(&arguments[..N])
|
Arguments(&arguments[..N])
|
||||||
}
|
}
|
||||||
|
|
||||||
fn valid(_prefix: &IrcPrefix,
|
fn valid(_prefix: &IrcPrefix, arguments: &[&str], _factory: &Factory) -> bool {
|
||||||
arguments: &[&str],
|
|
||||||
_factory: &Factory,) -> bool {
|
|
||||||
arguments.len() == N
|
arguments.len() == N
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user