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 1
1
use clippy_utils:: diagnostics:: span_lint_and_sugg;
2
- use clippy_utils:: ty:: is_type_diagnostic_item;
3
2
use clippy_utils:: source:: snippet;
3
+ use clippy_utils:: ty:: is_type_diagnostic_item;
4
+ use rustc_errors:: Applicability ;
4
5
use rustc_hir:: { Expr , ExprKind } ;
5
6
use rustc_lint:: { LateContext , LateLintPass } ;
6
7
use rustc_session:: { declare_lint_pass, declare_tool_lint} ;
7
8
use rustc_span:: sym;
8
- use rustc_errors:: Applicability ;
9
9
10
10
declare_clippy_lint ! {
11
11
/// ### What it does
@@ -63,13 +63,13 @@ impl<'tcx> LateLintPass<'tcx> for PathFromFormat {
63
63
temp_string = String :: new( ) ;
64
64
}
65
65
for target in push_targets {
66
- let target_processed =
66
+ let target_processed =
67
67
if target != unformatted[ 1 ] . replace( ' ' , "" ) {
68
68
let mut s = String :: from( "\" " ) ;
69
69
s. push_str( & target) ;
70
70
s. push( '"' ) ;
71
71
s
72
- }
72
+ }
73
73
else {
74
74
target
75
75
} ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::path::PathBuf;
4
4
5
5
fn main ( ) {
6
6
// let base_path = "";
7
- // PathBuf::from(format!("{}/foo/bar", base_path));
7
+ // PathBuf::from(format!("{}/foo/bar", base_path));
8
8
let mut base_path1 = "" ;
9
- PathBuf :: from ( format ! ( "{}/foo/bar" , base_path1) ) ;
9
+ PathBuf :: from ( format ! ( "{}/foo/bar" , base_path1) ) ;
10
10
}
You can’t perform that action at this time.
0 commit comments