aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-21 21:36:15 +0100
committerMartin Fischer <martin@push-f.com>2021-11-21 21:36:28 +0100
commit8345637cb9f21fdcfcaa13a48329137e5527a0d3 (patch)
treef9b2c4c74d301223a992015dcc4cd3b329fb4cd3 /src
parent29d0acb48a03a08eff63d0c40c2e6961f250cb89 (diff)
auto-box all trait bounds, bump version to 0.3.2v0.3.2
Diffstat (limited to 'src')
-rw-r--r--src/parse_assoc_type.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse_assoc_type.rs b/src/parse_assoc_type.rs
index 048e58c..856735d 100644
--- a/src/parse_assoc_type.rs
+++ b/src/parse_assoc_type.rs
@@ -79,11 +79,11 @@ pub fn parse_assoc_type(
}
}
}
- let path = &bound.path;
+ let bounds = &assoc_type.bounds;
return Ok((
&assoc_type.ident,
DestType::Box(BoxType {
- inner: quote! {dyn #path},
+ inner: quote! {dyn #bounds},
placeholder_lifetime: !lifetime_bounds(&assoc_type.bounds)
.any(|l| l.ident == "static"),
}),