mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Fix missing semicolon in redundant_as_str docstring example
This commit is contained in:
parent
1c9f3bef8b
commit
01056c5aae
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue