mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-27 09:50:41 +00:00
Fix bare_trait_objects lint
This commit is contained in:
parent
9c42ea6765
commit
b1cd699138
@ -72,7 +72,7 @@ impl Args {
|
||||
///
|
||||
/// // After
|
||||
/// { VAR = INIT; println!("VAR = {:?}", VAR); }
|
||||
fn assign_and_print(&mut self, left: Expr, op: &ToTokens, right: Expr) -> Expr {
|
||||
fn assign_and_print(&mut self, left: Expr, op: &dyn ToTokens, right: Expr) -> Expr {
|
||||
let right = fold::fold_expr(self, right);
|
||||
parse_quote!({
|
||||
#left #op #right;
|
||||
|
Loading…
Reference in New Issue
Block a user