Skip to content

Commit 106a725

Browse files
committed
Dogfood for inefficient_to_string
1 parent 76b44f3 commit 106a725

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/replace_consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ReplaceConsts {
3939
if let hir::ExprKind::Path(ref qp) = expr.kind;
4040
if let Res::Def(DefKind::Const, def_id) = cx.tables.qpath_res(qp, expr.hir_id);
4141
then {
42-
for (const_path, repl_snip) in &REPLACEMENTS {
42+
for &(ref const_path, repl_snip) in &REPLACEMENTS {
4343
if match_def_path(cx, def_id, const_path) {
4444
span_lint_and_sugg(
4545
cx,

clippy_lints/src/utils/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn get_attr<'a>(
7171
})
7272
{
7373
let mut db = sess.struct_span_err(attr_segments[1].ident.span, "Usage of deprecated attribute");
74-
match deprecation_status {
74+
match *deprecation_status {
7575
DeprecationStatus::Deprecated => {
7676
db.emit();
7777
false

0 commit comments

Comments
 (0)