mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 21:37:56 +00:00
Switch to Rust 2021 (#10170)
* Switch to Rust 2021 * Update trybuild to fix errors
This commit is contained in:
@@ -70,7 +70,7 @@ impl<T> Contains<T> for Tuple {
|
||||
/// to `matches!`.
|
||||
#[macro_export]
|
||||
macro_rules! match_type {
|
||||
( pub type $n:ident: impl Contains<$t:ty> = { $phead:pat $( | $ptail:pat )* } ; ) => {
|
||||
( pub type $n:ident: impl Contains<$t:ty> = { $phead:pat_param $( | $ptail:pat )* } ; ) => {
|
||||
pub struct $n;
|
||||
impl $crate::traits::Contains<$t> for $n {
|
||||
fn contains(l: &$t) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user