File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ fn parse(input: ParseStream, modules: &mut Vec<Module>) -> Result<()> {
21
21
while !input. is_empty ( ) {
22
22
let mut cxx_bridge = false ;
23
23
let mut namespace = Namespace :: none ( ) ;
24
- let attrs = input. call ( Attribute :: parse_outer) ?;
24
+ let mut attrs = input. call ( Attribute :: parse_outer) ?;
25
25
for attr in & attrs {
26
26
let path = & attr. path . segments ;
27
27
if path. len ( ) == 2 && path[ 0 ] . ident == "cxx" && path[ 1 ] . ident == "bridge" {
@@ -45,6 +45,7 @@ fn parse(input: ParseStream, modules: &mut Vec<Module>) -> Result<()> {
45
45
if cxx_bridge {
46
46
let mut module: Module = input. parse ( ) ?;
47
47
module. namespace = namespace;
48
+ attrs. extend ( module. attrs ) ;
48
49
module. attrs = attrs;
49
50
modules. push ( module) ;
50
51
} else {
You can’t perform that action at this time.
0 commit comments