Skip to content

Commit 7d83e13

Browse files
committed
1 parent 01ab9fe commit 7d83e13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/utils/sugg.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::convert::TryInto;
1313
use std::fmt::Display;
1414
use syntax::ast;
1515
use syntax::parse::token;
16-
use syntax::print::pprust::token_to_string;
16+
use syntax::print::pprust::token_kind_to_string;
1717
use syntax::source_map::{CharPos, Span};
1818
use syntax::util::parser::AssocOp;
1919
use syntax_pos::{BytePos, Pos};
@@ -384,7 +384,7 @@ pub fn make_assoc(op: AssocOp, lhs: &Sugg<'_>, rhs: &Sugg<'_>) -> Sugg<'static>
384384
rhs
385385
),
386386
AssocOp::Assign => format!("{} = {}", lhs, rhs),
387-
AssocOp::AssignOp(op) => format!("{} {}= {}", lhs, token_to_string(&token::BinOp(op)), rhs),
387+
AssocOp::AssignOp(op) => format!("{} {}= {}", lhs, token_kind_to_string(&token::BinOp(op)), rhs),
388388
AssocOp::As => format!("{} as {}", lhs, rhs),
389389
AssocOp::DotDot => format!("{}..{}", lhs, rhs),
390390
AssocOp::DotDotEq => format!("{}..={}", lhs, rhs),

0 commit comments

Comments
 (0)