Skip to content

Commit 24c3ac1

Browse files
committed
Update path_from_format.rs
1 parent d471e2f commit 24c3ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/path_from_format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
3636
if let ExprKind::Call(_, ref args) = expr.kind;
3737
if let ty = cx.typeck_results().expr_ty(expr);
3838
if is_type_diagnostic_item(cx, ty, sym::PathBuf);
39-
if args.len() == 0;
39+
if args.len() > 0;
4040
if let Some(macro_def_id) = args[0].span.ctxt().outer_expn_data().macro_def_id;
4141
if cx.tcx.get_diagnostic_name(macro_def_id) == Some(sym::format_macro);
4242
then {

0 commit comments

Comments
 (0)