]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix build warning for unknown lint 5487/head
authorSumera Priyadarsini <sylphrenadin@gmail.com>
Tue, 13 Oct 2020 10:01:33 +0000 (15:31 +0530)
committerSumera Priyadarsini <sylphrenadin@gmail.com>
Tue, 13 Oct 2020 18:14:19 +0000 (23:44 +0530)
Builds for suricata with rustc 1.24.1 give the warning:
warning: unknown lint: `ellipsis_inclusive_range_patterns`

The builtin lint had been added to fix a deprecation warning
for the `...` range patterns. Although rustc 1.24.1 is
no longer the MSRV, rendering the lint unnecessary, removing it
results in a strict error for rustc 1.47.x.

Add relevant code to allow unknown lints.

rust/src/lib.rs

index 7a967bee003d390c5d994c3849a1f237c12af6d2..4966232768b72222dd20dc571379406d05d08a0e 100644 (file)
@@ -15,7 +15,8 @@
  * 02110-1301, USA.
  */
 
-#![allow(ellipsis_inclusive_range_patterns)] // TODO: Remove when MSRV is higher than 1.24
+#![allow(unknown_lints)]
+#![allow(ellipsis_inclusive_range_patterns)]
 #![cfg_attr(feature = "strict", deny(warnings))]
 
 extern crate libc;