aboutsummaryrefslogtreecommitdiff
path: root/src/transform.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-25 12:54:51 +0100
committerMartin Fischer <martin@push-f.com>2021-11-25 12:54:51 +0100
commitdc568083381d2073f0cfcfad8fa58158bd5bf811 (patch)
tree3c0655dd65c5912a4cbfd02bb4c9738e62074ccf /src/transform.rs
parent06a384000b0a6c7b657e4f8a9145b3d4357f3d70 (diff)
refactor: remove unnecessary TypeOrPath type
Diffstat (limited to 'src/transform.rs')
-rw-r--r--src/transform.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transform.rs b/src/transform.rs
index 831fb14..39d3cab 100644
--- a/src/transform.rs
+++ b/src/transform.rs
@@ -64,7 +64,7 @@ impl TypeConverter<'_> {
..
}) = type_
{
- if let Type::Path(TypePath { qself: None, path }) = ty.as_ref() {
+ if let Type::Path(path) = ty.as_ref() {
if path_is_assoc_type(path) {
return Err((path.span(), TransformError::QualifiedSelfAssociatedType));
}