File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11use clippy_utils:: diagnostics:: span_lint_and_sugg;
2- use clippy_utils:: ty:: is_type_diagnostic_item;
32use clippy_utils:: source:: snippet;
3+ use clippy_utils:: ty:: is_type_diagnostic_item;
4+ use rustc_errors:: Applicability ;
45use rustc_hir:: { Expr , ExprKind } ;
56use rustc_lint:: { LateContext , LateLintPass } ;
67use rustc_session:: { declare_lint_pass, declare_tool_lint} ;
78use rustc_span:: sym;
8- use rustc_errors:: Applicability ;
99
1010declare_clippy_lint ! {
1111 /// ### What it does
@@ -63,13 +63,13 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
6363 temp_string = String :: new( ) ;
6464 }
6565 for target in push_targets {
66- let target_processed =
66+ let target_processed =
6767 if target != unformatted[ 1 ] . replace( ' ' , "" ) {
6868 let mut s = String :: from( "\" " ) ;
6969 s. push_str( & target) ;
7070 s. push( '"' ) ;
7171 s
72- }
72+ }
7373 else {
7474 target
7575 } ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::path::PathBuf;
44
55fn main ( ) {
66 // let base_path = "";
7- // PathBuf::from(format!("{}/foo/bar", base_path));
7+ // PathBuf::from(format!("{}/foo/bar", base_path));
88 let mut base_path1 = "" ;
9- PathBuf :: from ( format ! ( "{}/foo/bar" , base_path1) ) ;
9+ PathBuf :: from ( format ! ( "{}/foo/bar" , base_path1) ) ;
1010}
You can’t perform that action at this time.
0 commit comments