chore: apply spelling and typo fixes (#21182)

This commit is contained in:
Georgios Konstantopoulos
2026-01-19 02:21:25 -08:00
committed by GitHub
parent 915164078f
commit a901d80ee6
10 changed files with 16 additions and 15 deletions

View File

@@ -69,7 +69,7 @@ pub fn generate_from_to(
}
}
/// Generates code to implement the `Compact` trait method `to_compact`.
/// Generates code to implement the `Compact` trait method `from_compact`.
fn generate_from_compact(
fields: &FieldList,
ident: &Ident,
@@ -155,7 +155,7 @@ fn generate_from_compact(
}
}
/// Generates code to implement the `Compact` trait method `from_compact`.
/// Generates code to implement the `Compact` trait method `to_compact`.
fn generate_to_compact(
fields: &FieldList,
ident: &Ident,

View File

@@ -175,7 +175,7 @@ fn should_use_alt_impl(ftype: &str, segment: &syn::PathSegment) -> bool {
let syn::PathArguments::AngleBracketed(ref args) = segment.arguments &&
let Some(syn::GenericArgument::Type(syn::Type::Path(arg_path))) = args.args.last() &&
let (Some(path), 1) = (arg_path.path.segments.first(), arg_path.path.segments.len()) &&
["B256", "Address", "Address", "Bloom", "TxHash", "BlockHash", "CompactPlaceholder"]
["B256", "Address", "Bloom", "TxHash", "BlockHash", "CompactPlaceholder"]
.iter()
.any(|&s| path.ident == s)
{