Fix missing semicolon in redundant_as_str docstring example

This commit is contained in:
Dev381 2023-09-17 18:10:21 -04:00
parent 1c9f3bef8b
commit 01056c5aae

View File

@ -3617,14 +3617,14 @@ declare_clippy_lint! {
/// ```rust
/// # #![allow(unused)]
/// let owned_string = "This is a string".to_owned();
/// owned_string.as_str().as_bytes()
/// owned_string.as_str().as_bytes();
/// ```
///
/// Use instead:
/// ```rust
/// # #![allow(unused)]
/// let owned_string = "This is a string".to_owned();
/// owned_string.as_bytes()
/// owned_string.as_bytes();
/// ```
#[clippy::version = "1.74.0"]
pub REDUNDANT_AS_STR,