Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ use crate::TypleMacro;

#[derive(Clone)]
pub enum Typle {
// `Typle<C>`: the name C of the type for all components (concrete or generic)
Specific(Type),
// `Typle`: the invented name for each component
Generic(Rc<Vec<String>>),
}

Expand Down
8 changes: 4 additions & 4 deletions src/context/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ impl TypleContext {
// T<{4}> -> T4
match self.get_type(typle, value, first.span())? {
Type::Path(syn::TypePath {
qself: first_qself,
path: first_path,
qself: None,
path: component_path,
}) => {
*qself = first_qself;
path.segments = first_path
path.leading_colon = component_path.leading_colon;
path.segments = component_path
.segments
.into_iter()
.chain(segments)
Expand Down