diff options
Diffstat (limited to 'gen/src/nested.rs')
-rw-r--r-- | gen/src/nested.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gen/src/nested.rs b/gen/src/nested.rs index 99cfdf8f..66d854e5 100644 --- a/gen/src/nested.rs +++ b/gen/src/nested.rs @@ -52,9 +52,10 @@ fn sort_by_inner_namespace(apis: Vec<&Api>, depth: usize) -> NamespaceEntries { mod tests { use super::NamespaceEntries; use crate::syntax::namespace::Namespace; - use crate::syntax::{Api, Doc, ExternType, Lang, Pair}; + use crate::syntax::{Api, Doc, ExternType, Lang, Lifetimes, Pair}; use proc_macro2::{Ident, Span}; use std::iter::FromIterator; + use syn::punctuated::Punctuated; use syn::Token; #[test] @@ -136,7 +137,11 @@ mod tests { cxx: ident.clone(), rust: ident, }, - lifetimes: Vec::new(), + generics: Lifetimes { + lt_token: None, + lifetimes: Punctuated::new(), + gt_token: None, + }, colon_token: None, bounds: Vec::new(), semi_token: Token![;](Span::call_site()), |