Remove unnecessary allow attribute

It seems like it was fixed in clippy.
This commit is contained in:
Kévin Commaille 2024-12-28 15:41:52 +01:00 committed by strawberry
parent 9e9b59819c
commit 6441d823dd

View File

@ -608,8 +608,6 @@ impl MessageType {
if let Some(formatted) = formatted { if let Some(formatted) = formatted {
formatted.sanitize_html(mode, remove_reply_fallback); formatted.sanitize_html(mode, remove_reply_fallback);
} }
// This is a false positive, see <https://github.com/rust-lang/rust-clippy/issues/12444>
#[allow(clippy::assigning_clones)]
if remove_reply_fallback == RemoveReplyFallback::Yes { if remove_reply_fallback == RemoveReplyFallback::Yes {
*body = remove_plain_reply_fallback(body).to_owned(); *body = remove_plain_reply_fallback(body).to_owned();
} }