chore: update toolchain to 2025-04-28

This commit is contained in:
David Testé
2025-04-29 11:25:52 +02:00
committed by David Testé
parent f5a52128e2
commit dc67ca721d
34 changed files with 164 additions and 176 deletions

View File

@@ -62,8 +62,7 @@ impl AssociatedType for DispatchType {
return Err(syn::Error::new(
lt.lifetime.span(),
format!(
"Lifetime name {} conflicts with the one used by macro `Version`",
LIFETIME_NAME
"Lifetime name {LIFETIME_NAME} conflicts with the one used by macro `Version`"
),
));
}

View File

@@ -59,8 +59,7 @@ impl AssociatedType for VersionType {
return Err(syn::Error::new(
lt.lifetime.span(),
format!(
"Lifetime name {} conflicts with the one used by macro `Version`",
LIFETIME_NAME
"Lifetime name {LIFETIME_NAME} conflicts with the one used by macro `Version`",
),
));
}

View File

@@ -210,7 +210,7 @@ impl VersionizeImplementor {
add_trait_where_clause(
&mut generics,
[&parse_quote!(#dispatch_enum_path #dispatch_ty_generics)],
&[format!("{}<Self>", DISPATCH_TRAIT_NAME,)],
&[format!("{DISPATCH_TRAIT_NAME}<Self>")],
)?;
}
Self::Convert(convert_attr) => {
@@ -220,7 +220,7 @@ impl VersionizeImplementor {
[&parse_quote!(#convert_type_path)],
&[
VERSIONIZE_OWNED_TRAIT_NAME,
&format!("{}<Self>", FROM_TRAIT_NAME),
&format!("{FROM_TRAIT_NAME}<Self>"),
],
)?;
}
@@ -252,7 +252,7 @@ impl VersionizeImplementor {
let mut generics = input_generics.clone();
let convert_type_path = &convert_attr.conversion_target;
let into_trait = match convert_attr.conversion_type {
ConversionType::Direct => format!("{}<Self>", INTO_TRAIT_NAME),
ConversionType::Direct => format!("{INTO_TRAIT_NAME}<Self>"),
ConversionType::Try => {
// Doing a TryFrom requires that the error
// impl Error + Send + Sync + 'static
@@ -268,7 +268,7 @@ impl VersionizeImplementor {
&[STATIC_LIFETIME_NAME],
)?;
format!("{}<Self>", TRY_INTO_TRAIT_NAME)
format!("{TRY_INTO_TRAIT_NAME}<Self>")
}
};
add_trait_where_clause(
@@ -276,7 +276,7 @@ impl VersionizeImplementor {
[&parse_quote!(#convert_type_path)],
&[
UNVERSIONIZE_TRAIT_NAME,
&format!("{}<Self>", FROM_TRAIT_NAME),
&format!("{FROM_TRAIT_NAME}<Self>"),
&into_trait,
],
)?;