mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
macros: use matches!() to fix build warning
This is a new feature, and Rust really wants us to use it. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
67adccf16a
commit
ef33cc577f
1 changed files with 1 additions and 4 deletions
|
|
@ -66,10 +66,7 @@ pub fn xous_main(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||||
&& f.sig.variadic.is_none()
|
&& f.sig.variadic.is_none()
|
||||||
&& match f.sig.output {
|
&& match f.sig.output {
|
||||||
ReturnType::Default => false,
|
ReturnType::Default => false,
|
||||||
ReturnType::Type(_, ref ty) => match **ty {
|
ReturnType::Type(_, ref ty) => matches!(**ty, Type::Never(_)),
|
||||||
Type::Never(_) => true,
|
|
||||||
_ => false,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if !valid_signature {
|
if !valid_signature {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue