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 } ;
23use clippy_utils:: source:: snippet_with_applicability;
34use clippy_utils:: ty:: is_type_diagnostic_item;
4- use clippy_utils:: macros:: { root_macro_call, FormatArgsExpn } ;
55use rustc_errors:: Applicability ;
66use rustc_hir:: { Expr , ExprKind } ;
77use rustc_lint:: { LateContext , LateLintPass } ;
@@ -62,7 +62,7 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
6262 "`format!(..)` used to form `PathBuf`" ,
6363 None ,
6464 "consider using `.join()` to avoid the extra allocation" ,
65- ) ;
65+ ) ;
6666 return ;
6767 }
6868 let sugg = {
You can’t perform that action at this time.
0 commit comments