diff --git a/impl/src/try_into.rs b/impl/src/try_into.rs index f3066c1d..2feac58f 100644 --- a/impl/src/try_into.rs +++ b/impl/src/try_into.rs @@ -46,7 +46,7 @@ pub fn expand(input: &DeriveInput, trait_name: &'static str) -> Result Result = vars .iter() .map(|var| quote! { #pattern_ref #var }) @@ -80,7 +80,7 @@ pub fn expand(input: &DeriveInput, trait_name: &'static str) -> Result>(); format!("({})", types.join(", ")) }; - let variant_names = multi_field_datas + let variant_names = multi_field_data .iter() .map(|d| { d.variant_name diff --git a/src/as.rs b/src/as.rs index d0138268..8e43596d 100644 --- a/src/as.rs +++ b/src/as.rs @@ -18,7 +18,7 @@ impl Default for Conv { /// Trait performing the specialization. pub trait ExtractRef { - /// Inout reference type. + /// Input reference type. type Frm; /// Output reference type. type To; diff --git a/tests/debug.rs b/tests/debug.rs index 710ed3dc..28655c17 100644 --- a/tests/debug.rs +++ b/tests/debug.rs @@ -1010,7 +1010,7 @@ mod generic { } #[derive(Debug)] - enum InterpolatedGenericEnumIngored { + enum InterpolatedGenericEnumIgnored { #[debug("A {field}")] A { field: A }, #[debug("B")] @@ -1021,12 +1021,12 @@ mod generic { assert_eq!( format!( "{:?}", - InterpolatedGenericEnumIngored::A::<_, u8> { field: NotDebug }, + InterpolatedGenericEnumIgnored::A::<_, u8> { field: NotDebug }, ), "A NotDebug", ); assert_eq!( - format!("{:?}", InterpolatedGenericEnumIngored::B::(NotDebug)), + format!("{:?}", InterpolatedGenericEnumIgnored::B::(NotDebug)), "B", ); }