update tests
This commit is contained in:
1 parent
58b74c1155
commit
35befa1784
12 files changed
+334
-236
No files matched your search
@@ -291,13 +291,21 @@ impl<'a> RouteTreeSegmentData<'a> {
|
||||
enum_varient,
|
||||
},
|
||||
} => {
|
||||
let error_ident = static_segment_idx(*index);
|
||||
|
||||
let children = children.iter().map(|child| {
|
||||
let child = tree.get(*child).unwrap();
|
||||
child.to_tokens(nests, tree, enum_name.clone(), error_enum_name.clone())
|
||||
});
|
||||
|
||||
if segment.is_empty() {
|
||||
return quote! {
|
||||
{
|
||||
#(#children)*
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
let error_ident = static_segment_idx(*index);
|
||||
|
||||
quote! {
|
||||
{
|
||||
let mut segments = segments.clone();
|
||||
|
||||
Reference in new issue
Block a user