format code after switching to edition 2024
All checks were successful
/ deps (pull_request) Successful in 16s
/ test (pull_request) Successful in 4m58s
/ deps (push) Successful in 14s
/ test (push) Successful in 5m23s

This commit is contained in:
Jacob Lifshay 2025-08-24 16:35:21 -07:00
parent ef85d11327
commit 4008c311bf
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ
37 changed files with 213 additions and 199 deletions

View file

@ -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)
}