Skip to content

Commit 9178363

Browse files
committed
path-buf-push-overwrite: make lint adhere to lint message convention
1 parent 81f77a4 commit 9178363

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/path_buf_push_overwrite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<'tcx> LateLintPass<'tcx> for PathBufPushOverwrite {
6060
cx,
6161
PATH_BUF_PUSH_OVERWRITE,
6262
lit.span,
63-
"Calling `push` with '/' or '\\' (file system root) will overwrite the previous path definition",
63+
"calling `push` with '/' or '\\' (file system root) will overwrite the previous path definition",
6464
"try",
6565
format!("\"{}\"", pushed_path_lit.trim_start_matches(|c| c == '/' || c == '\\')),
6666
Applicability::MachineApplicable,

tests/ui/path_buf_push_overwrite.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: Calling `push` with '/' or '/' (file system root) will overwrite the previous path definition
1+
error: calling `push` with '/' or '/' (file system root) will overwrite the previous path definition
22
--> $DIR/path_buf_push_overwrite.rs:7:12
33
|
44
LL | x.push("/bar");

0 commit comments

Comments
 (0)