From 01056c5aae63c546c3d988a0b46e502a3a2a7baf Mon Sep 17 00:00:00 2001 From: Dev381 <49997896+Dev380@users.noreply.github.com> Date: Sun, 17 Sep 2023 18:10:21 -0400 Subject: [PATCH] Fix missing semicolon in redundant_as_str docstring example --- clippy_lints/src/methods/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 0b0a90bac..bd07e6cbf 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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,