Skip to content

Commit

Permalink
Merge pull request #95 from auto-impl-rs/cargo/1.1.1
Browse files Browse the repository at this point in the history
Prepare for 1.1.1 release
  • Loading branch information
KodrAus committed Jan 27, 2024
2 parents 7642e66 + df51e5a commit a0f053c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auto_impl"
version = "1.1.0"
version = "1.1.1"
authors = [
"Ashley Mannix <ashleymannix@live.com.au>",
"Lukas Kalbertodt <lukas.kalbertodt@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a0f053c

Please sign in to comment.