]> git.ipfire.org Git - thirdparty/suricata.git/commit
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)
commit65040a29e787086880c2528c09370add6fe8e868
treec8d3e4e5016725b4e5f449ec7a1090d94d78f0c8
parent1310217ed9e27651296e53f10b6da4f8789fb3a4
rust: fix build warning for unknown lint

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