]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
smtp: suppress static_mut_refs where needed
authorJason Ish <jason.ish@oisf.net>
Tue, 25 Feb 2025 16:18:12 +0000 (10:18 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Feb 2025 05:57:44 +0000 (06:57 +0100)
Allows us to get rid of the global supression.

Ticket: #7417

rust/src/mime/smtp.rs

index 5dddbe0b103646361213beeb7e731f4a05b7f673..8125457d43c5225d0dd157b7795c8cd13c5eb4f5 100644 (file)
@@ -291,6 +291,7 @@ fn mime_smtp_finish_url(input: &[u8]) -> &[u8] {
     return input;
 }
 
+#[allow(static_mut_refs)]
 fn mime_smtp_extract_urls(urls: &mut Vec<Vec<u8>>, input_start: &[u8]) {
     //TODO optimize later : use mpm
     for s in unsafe { MIME_SMTP_CONFIG_EXTRACT_URL_SCHEMES.iter() } {
@@ -743,6 +744,7 @@ pub unsafe extern "C" fn SCMimeSmtpConfigHeaderValueDepth(val: u32) {
 }
 
 #[no_mangle]
+#[allow(static_mut_refs)]
 pub unsafe extern "C" fn SCMimeSmtpConfigExtractUrlsSchemeAdd(
     str: *const std::os::raw::c_char,
 ) -> std::os::raw::c_int {