diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-22 08:03:37 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-22 08:17:28 +0100 |
commit | 93e088f18959a95e71ec5084250b3ccd64d5340e (patch) | |
tree | bc2241ac6882cc70e5c10d4dd803572728473ccf /src/lib.rs | |
parent | 99a1e9f42e79a73e7ec3c08eb873d0ef271319d8 (diff) |
refactor: change x.first().unwrap() to x[0]
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |