Remove unneeded &

This commit is contained in:
Fabian Boehm 2023-04-16 22:22:04 +02:00
parent ead329db60
commit a91689e211

View file

@ -4398,7 +4398,7 @@ fn ast_parse_ffi(src: &CxxWString, flags: u8, errors: *mut ParseErrorList) -> Bo
Some(unsafe { &*errors }.clone()) Some(unsafe { &*errors }.clone())
}; };
let ast = Box::new(Ast::parse( let ast = Box::new(Ast::parse(
&src.as_wstr(), src.as_wstr(),
ParseTreeFlags(flags), ParseTreeFlags(flags),
&mut out_errors, &mut out_errors,
)); ));
@ -4419,7 +4419,7 @@ fn ast_parse_argument_list_ffi(
Some(unsafe { &*errors }.clone()) Some(unsafe { &*errors }.clone())
}; };
let ast = Box::new(Ast::parse_argument_list( let ast = Box::new(Ast::parse_argument_list(
&src.as_wstr(), src.as_wstr(),
ParseTreeFlags(flags), ParseTreeFlags(flags),
&mut out_errors, &mut out_errors,
)); ));