From eabbb036e237f6ba0bcbb45714e10db658f787cc Mon Sep 17 00:00:00 2001 From: KodrAus Date: Sun, 28 Jan 2024 09:01:32 +1000 Subject: [PATCH 1/2] prepare for 1.1.1 release --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6e92721..df218b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "auto_impl" -version = "1.1.0" +version = "1.1.1" authors = [ "Ashley Mannix ", "Lukas Kalbertodt ", From df51e5a3a12cb105acc3153585f5a05f393bfa3e Mon Sep 17 00:00:00 2001 From: KodrAus Date: Sun, 28 Jan 2024 09:03:52 +1000 Subject: [PATCH 2/2] fix up clippy warning --- src/gen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen.rs b/src/gen.rs index fef0721..300b8b5 100644 --- a/src/gen.rs +++ b/src/gen.rs @@ -294,7 +294,7 @@ fn gen_header( fn gen_fn_type_for_trait(proxy_type: &ProxyType, trait_def: &ItemTrait) -> TokenStream2 { // Only traits with exactly one method can be implemented for Fn-traits. // Associated types and consts are also not allowed. - let method = trait_def.items.get(0).and_then(|item| { + let method = trait_def.items.first().and_then(|item| { if let TraitItem::Fn(m) = item { Some(m) } else {