Skip to content

Commit 0cf51b1

Browse files
authored
Fix typo in deprecated lint string_to_string message (#16208)
Closes: rust-lang/rust-clippy#16204 ---- changelog: Fix typo in deprecated lint `string_to_string` message
2 parents 52fea21 + d0e4b5b commit 0cf51b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/deprecated_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ declare_with_version! { DEPRECATED(DEPRECATED_VERSION) = [
3434
#[clippy::version = "pre 1.29.0"]
3535
("clippy::should_assert_eq", "`assert!(a == b)` can now print the values the same way `assert_eq!(a, b) can"),
3636
#[clippy::version = "1.91.0"]
37-
("clippy::string_to_string", "`clippy:implicit_clone` covers those cases"),
37+
("clippy::string_to_string", "`clippy::implicit_clone` covers those cases"),
3838
#[clippy::version = "pre 1.29.0"]
3939
("clippy::unsafe_vector_initialization", "the suggested alternative could be substantially slower"),
4040
#[clippy::version = "pre 1.29.0"]

tests/ui/deprecated.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ error: lint `clippy::should_assert_eq` has been removed: `assert!(a == b)` can n
6161
LL | #![warn(clippy::should_assert_eq)]
6262
| ^^^^^^^^^^^^^^^^^^^^^^^^
6363

64-
error: lint `clippy::string_to_string` has been removed: `clippy:implicit_clone` covers those cases
64+
error: lint `clippy::string_to_string` has been removed: `clippy::implicit_clone` covers those cases
6565
--> tests/ui/deprecated.rs:15:9
6666
|
6767
LL | #![warn(clippy::string_to_string)]

0 commit comments

Comments
 (0)