diff options
| author | Martin Fischer <martin@push-f.com> | 2021-11-25 10:30:54 +0100 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2021-11-26 11:45:53 +0100 | 
| commit | 7489a3c2246e7ea2483446dd2ed3fdbfaf462c1a (patch) | |
| tree | fc2670f56f7cc16567eb10d88f9439abb9098298 /src/parse_assoc_type.rs | |
| parent | 43950edc4f26a07055fb917fa8bbb262276e2a08 (diff) | |
introduce #[convert] attribute
Diffstat (limited to 'src/parse_assoc_type.rs')
| -rw-r--r-- | src/parse_assoc_type.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/parse_assoc_type.rs b/src/parse_assoc_type.rs index adde237..e52dd14 100644 --- a/src/parse_assoc_type.rs +++ b/src/parse_assoc_type.rs @@ -30,12 +30,12 @@ impl ToTokens for BoxType {      }  } -pub enum DestType<'a> { -    Into(&'a Type), +pub enum DestType { +    Into(Type),      Box(BoxType),  } -impl DestType<'_> { +impl DestType {      pub fn get_dest(&self) -> Type {          match self {              DestType::Into(ty) => (*ty).clone(), @@ -78,7 +78,7 @@ pub fn parse_assoc_type(                          ));                      } -                    return Ok((&assoc_type.ident, DestType::Into(into_type))); +                    return Ok((&assoc_type.ident, DestType::Into(into_type.clone())));                  }              }          } | 
