run cargo fix for rust 2024 changes and rustfmt
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e97952b7f6
commit
a1e1f40ded
320 changed files with 2212 additions and 2039 deletions
|
@ -49,7 +49,7 @@ pub fn exchange<T>(state: &mut T, source: T) -> T { std::mem::replace(state, sou
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! extract_variant {
|
||||
($e:expr, $variant:path) => {
|
||||
($e:expr_2021, $variant:path) => {
|
||||
match $e {
|
||||
| $variant(value) => Some(value),
|
||||
| _ => None,
|
||||
|
@ -90,7 +90,7 @@ macro_rules! pair_of {
|
|||
($decl, $decl)
|
||||
};
|
||||
|
||||
($init:expr) => {
|
||||
($init:expr_2021) => {
|
||||
($init, $init)
|
||||
};
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ macro_rules! is_equal_to {
|
|||
|x| x == $val
|
||||
};
|
||||
|
||||
($val:expr) => {
|
||||
($val:expr_2021) => {
|
||||
|x| x == $val
|
||||
};
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ macro_rules! is_less_than {
|
|||
|x| x < $val
|
||||
};
|
||||
|
||||
($val:expr) => {
|
||||
($val:expr_2021) => {
|
||||
|x| x < $val
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue