Skip to content
Snippets Groups Projects
Commit fb75bca5 authored by Éloïs's avatar Éloïs
Browse files

clippy

parent ab05fe8b
No related branches found
No related tags found
No related merge requests found
...@@ -143,11 +143,7 @@ pub type Executive = frame_executive::Executive< ...@@ -143,11 +143,7 @@ pub type Executive = frame_executive::Executive<
pub struct BaseCallFilter; pub struct BaseCallFilter;
impl frame_support::traits::Contains<Call> for BaseCallFilter { impl frame_support::traits::Contains<Call> for BaseCallFilter {
fn contains(call: &Call) -> bool { fn contains(call: &Call) -> bool {
match call { matches!(call, Call::Membership(_) | Call::Session(_))
Call::Membership(_) => false,
Call::Session(_) => false,
_ => true,
}
} }
} }
......
...@@ -135,10 +135,7 @@ pub type Executive = frame_executive::Executive< ...@@ -135,10 +135,7 @@ pub type Executive = frame_executive::Executive<
pub struct BaseCallFilter; pub struct BaseCallFilter;
impl frame_support::traits::Contains<Call> for BaseCallFilter { impl frame_support::traits::Contains<Call> for BaseCallFilter {
fn contains(call: &Call) -> bool { fn contains(call: &Call) -> bool {
match call { matches!(call, Call::Membership(_))
Call::Membership(_) => false,
_ => true,
}
} }
} }
......
...@@ -143,11 +143,7 @@ pub type Executive = frame_executive::Executive< ...@@ -143,11 +143,7 @@ pub type Executive = frame_executive::Executive<
pub struct BaseCallFilter; pub struct BaseCallFilter;
impl frame_support::traits::Contains<Call> for BaseCallFilter { impl frame_support::traits::Contains<Call> for BaseCallFilter {
fn contains(call: &Call) -> bool { fn contains(call: &Call) -> bool {
match call { matches!(call, Call::Membership(_) | Call::Session(_))
Call::Membership(_) => false,
Call::Session(_) => false,
_ => true,
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment