aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6a1708f..a5253d3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -362,7 +362,7 @@ fn generate_blanket_impl(
}
fn path_is_assoc_type(path: &Path) -> bool {
- path.segments.first().unwrap().ident == "Self"
+ path.segments[0].ident == "Self"
}
fn match_assoc_type(item: TypeOrPath) -> bool {