Fix bare_trait_objects lint

This commit is contained in:
David Tolnay 2019-07-27 17:25:28 -07:00
parent 9c42ea6765
commit b1cd699138
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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;