STRING_ADD example

This commit is contained in:
alexey semenyuk 2022-06-26 11:14:37 +03:00 committed by GitHub
parent 8789f4e88a
commit 4065702b1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,12 @@ declare_clippy_lint! {
/// let x = "Hello".to_owned();
/// x + ", World";
/// ```
///
/// Use instead:
/// ```rust
/// let x = "Hello".to_owned();
/// x.push_str(", World");
/// ```
#[clippy::version = "pre 1.29.0"]
pub STRING_ADD,
restriction,