Skip to content

Commit a6ea6fb

Browse files
committed
fmt
1 parent 1b145d4 commit a6ea6fb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clippy_lints/src/path_from_format.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use clippy_utils::diagnostics::span_lint_and_sugg;
2-
use clippy_utils::ty::is_type_diagnostic_item;
32
use clippy_utils::source::snippet;
3+
use clippy_utils::ty::is_type_diagnostic_item;
4+
use rustc_errors::Applicability;
45
use rustc_hir::{Expr, ExprKind};
56
use rustc_lint::{LateContext, LateLintPass};
67
use rustc_session::{declare_lint_pass, declare_tool_lint};
78
use rustc_span::sym;
8-
use rustc_errors::Applicability;
99

1010
declare_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
};

tests/ui/path_from_format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::path::PathBuf;
44

55
fn 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
}

0 commit comments

Comments
 (0)