Skip to content

Commit

Permalink
Dogfood for inefficient_to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
HMPerson1 committed Oct 16, 2019
1 parent 76b44f3 commit 106a725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/replace_consts.rs
Expand Up @@ -39,7 +39,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ReplaceConsts {
if let hir::ExprKind::Path(ref qp) = expr.kind;
if let Res::Def(DefKind::Const, def_id) = cx.tables.qpath_res(qp, expr.hir_id);
then {
for (const_path, repl_snip) in &REPLACEMENTS {
for &(ref const_path, repl_snip) in &REPLACEMENTS {
if match_def_path(cx, def_id, const_path) {
span_lint_and_sugg(
cx,
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/attrs.rs
Expand Up @@ -71,7 +71,7 @@ pub fn get_attr<'a>(
})
{
let mut db = sess.struct_span_err(attr_segments[1].ident.span, "Usage of deprecated attribute");
match deprecation_status {
match *deprecation_status {
DeprecationStatus::Deprecated => {
db.emit();
false
Expand Down

0 comments on commit 106a725

Please sign in to comment.