diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-07-24 00:16:28 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-08-10 23:49:06 +0200 |
| commit | 9178363574625a6185ea779c4a231b8f18205261 (patch) | |
| tree | 33de08dbe311319631f02d3a197f85e4849a4f49 | |
| parent | 81f77a411e844ca553ba93adcc8be617d372ac30 (diff) | |
| download | rust-9178363574625a6185ea779c4a231b8f18205261.tar.gz rust-9178363574625a6185ea779c4a231b8f18205261.zip | |
path-buf-push-overwrite: make lint adhere to lint message convention
| -rw-r--r-- | clippy_lints/src/path_buf_push_overwrite.rs | 2 | ||||
| -rw-r--r-- | tests/ui/path_buf_push_overwrite.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/path_buf_push_overwrite.rs b/clippy_lints/src/path_buf_push_overwrite.rs index 66a145a7f14..b8583402928 100644 --- a/clippy_lints/src/path_buf_push_overwrite.rs +++ b/clippy_lints/src/path_buf_push_overwrite.rs @@ -60,7 +60,7 @@ impl<'tcx> LateLintPass<'tcx> for PathBufPushOverwrite { cx, PATH_BUF_PUSH_OVERWRITE, lit.span, - "Calling `push` with '/' or '\\' (file system root) will overwrite the previous path definition", + "calling `push` with '/' or '\\' (file system root) will overwrite the previous path definition", "try", format!("\"{}\"", pushed_path_lit.trim_start_matches(|c| c == '/' || c == '\\')), Applicability::MachineApplicable, diff --git a/tests/ui/path_buf_push_overwrite.stderr b/tests/ui/path_buf_push_overwrite.stderr index 09b18d71baf..bb8dce2bbba 100644 --- a/tests/ui/path_buf_push_overwrite.stderr +++ b/tests/ui/path_buf_push_overwrite.stderr @@ -1,4 +1,4 @@ -error: Calling `push` with '/' or '/' (file system root) will overwrite the previous path definition +error: calling `push` with '/' or '/' (file system root) will overwrite the previous path definition --> $DIR/path_buf_push_overwrite.rs:7:12 | LL | x.push("/bar"); |
