aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 08:03:37 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 08:17:28 +0100
commit93e088f18959a95e71ec5084250b3ccd64d5340e (patch)
treebc2241ac6882cc70e5c10d4dd803572728473ccf /src/lib.rs
parent99a1e9f42e79a73e7ec3c08eb873d0ef271319d8 (diff)
refactor: change x.first().unwrap() to x[0]
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 {