File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- use clippy_utils:: diagnostics:: { span_lint_and_sugg, span_lint_and_help} ;
1
+ use clippy_utils:: diagnostics:: { span_lint_and_help, span_lint_and_sugg} ;
2
+ use clippy_utils:: macros:: { root_macro_call, FormatArgsExpn } ;
2
3
use clippy_utils:: source:: snippet_with_applicability;
3
4
use clippy_utils:: ty:: is_type_diagnostic_item;
4
- use clippy_utils:: macros:: { root_macro_call, FormatArgsExpn } ;
5
5
use rustc_errors:: Applicability ;
6
6
use rustc_hir:: { Expr , ExprKind } ;
7
7
use rustc_lint:: { LateContext , LateLintPass } ;
@@ -62,7 +62,7 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
62
62
"`format!(..)` used to form `PathBuf`" ,
63
63
None ,
64
64
"consider using `.join()` to avoid the extra allocation" ,
65
- ) ;
65
+ ) ;
66
66
return ;
67
67
}
68
68
let sugg = {
You can’t perform that action at this time.
0 commit comments