Skip to content

Commit a0f053c

Browse files
authored
Merge pull request #95 from auto-impl-rs/cargo/1.1.1
Prepare for 1.1.1 release
2 parents 7642e66 + df51e5a commit a0f053c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "auto_impl"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
authors = [
55
"Ashley Mannix <[email protected]>",
66
"Lukas Kalbertodt <[email protected]>",

src/gen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ fn gen_header(
294294
fn gen_fn_type_for_trait(proxy_type: &ProxyType, trait_def: &ItemTrait) -> TokenStream2 {
295295
// Only traits with exactly one method can be implemented for Fn-traits.
296296
// Associated types and consts are also not allowed.
297-
let method = trait_def.items.get(0).and_then(|item| {
297+
let method = trait_def.items.first().and_then(|item| {
298298
if let TraitItem::Fn(m) = item {
299299
Some(m)
300300
} else {

0 commit comments

Comments
 (0)