From 35eb943d61907738d3a5188938a483b8bdfded5b Mon Sep 17 00:00:00 2001 From: fritzrehde Date: Mon, 30 Oct 2023 18:12:31 +0100 Subject: [PATCH] fixed typos --- impl/src/try_into.rs | 6 +++--- src/as.rs | 2 +- tests/debug.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) 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", ); }