format code after switching to edition 2024
This commit is contained in:
parent
ef85d11327
commit
4008c311bf
37 changed files with 213 additions and 199 deletions
|
@ -5,8 +5,8 @@ use crate::{Cfg, CfgAttr, Cfgs, Errors};
|
|||
use proc_macro2::Ident;
|
||||
use std::{collections::VecDeque, marker::PhantomData};
|
||||
use syn::{
|
||||
punctuated::{Pair, Punctuated},
|
||||
Token,
|
||||
punctuated::{Pair, Punctuated},
|
||||
};
|
||||
|
||||
struct State<P: Phase> {
|
||||
|
@ -131,9 +131,9 @@ trait PhaseDispatch {
|
|||
type Args<P: Phase>;
|
||||
type Output<P: Phase>;
|
||||
fn dispatch_collect(self, args: Self::Args<CollectCfgsPhase>)
|
||||
-> Self::Output<CollectCfgsPhase>;
|
||||
-> Self::Output<CollectCfgsPhase>;
|
||||
fn dispatch_process(self, args: Self::Args<ProcessCfgsPhase>)
|
||||
-> Self::Output<ProcessCfgsPhase>;
|
||||
-> Self::Output<ProcessCfgsPhase>;
|
||||
}
|
||||
|
||||
trait Phase: Sized + 'static {
|
||||
|
@ -2510,7 +2510,7 @@ pub(crate) fn process_cfgs(item: syn::Item, cfgs: Cfgs<bool>) -> syn::Result<Opt
|
|||
errors: Errors::new(),
|
||||
_phantom: PhantomData,
|
||||
};
|
||||
let retval = TopItem(item).process(&mut state).map(|v| v.0 .0);
|
||||
let retval = TopItem(item).process(&mut state).map(|v| v.0.0);
|
||||
state.errors.finish()?;
|
||||
Ok(retval)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue