diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-21 09:37:32 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-21 09:39:40 +0100 |
commit | 57641e00d6ed1fd7689c3079abb10f67d5387143 (patch) | |
tree | adb48bb70be52bc6035d93826f7725dd64054b49 /src/syn_utils.rs | |
parent | 34dc166a9bc003bad36c28aeb29b625195d20a74 (diff) |
support -> &mut dyn Iterator<Item = Self::A>
Diffstat (limited to 'src/syn_utils.rs')
-rw-r--r-- | src/syn_utils.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syn_utils.rs b/src/syn_utils.rs index 43c4d94..ea4b5ea 100644 --- a/src/syn_utils.rs +++ b/src/syn_utils.rs @@ -128,6 +128,8 @@ fn types_in_path(p: &Path) -> impl Iterator<Item = &Type> { PathArguments::AngleBracketed(ang) => { IterEnum::Left(ang.args.iter().flat_map(|a| match a { GenericArgument::Type(t) => Some(t), + GenericArgument::Binding(b) => Some(&b.ty), + // TODO: handle GenericArgument::Constraint _other => None, })) } |