]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fixes for breaking change on deranged crate
authorJason Ish <jason.ish@oisf.net>
Tue, 25 Mar 2025 22:02:29 +0000 (16:02 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Mar 2025 05:52:27 +0000 (06:52 +0100)
commit77b94b8713d8fb3e88c445be69b9ecf9f2f2e521
tree202b24de4713be0d44a5c08decea27bce5f29723
parent1a47fdfd4603fa65e9d9cb36bfd4dc5819113253
rust: fixes for breaking change on deranged crate

Deranged v0.4.1 (a dependency of the time crate) has implemented
PartialOrd for some integer types that conflict with the
implementation in the standard library creating an ambiguity as such
implementation are global. For more info see
https://github.com/jhpratt/deranged/issues/18.

To fix, use "::from" directly, instead of using .into() which is where
we run into amgibuity.
17 files changed:
rust/src/dcerpc/dcerpc.rs
rust/src/detect/byte_extract.rs
rust/src/detect/byte_math.rs
rust/src/detect/transform_base64.rs
rust/src/detect/transforms/xor.rs
rust/src/dns/dns.rs
rust/src/enip/detect.rs
rust/src/http2/detect.rs
rust/src/ike/parser.rs
rust/src/mime/mime.rs
rust/src/mime/smtp.rs
rust/src/nfs/nfs.rs
rust/src/smb/smb2.rs
rust/src/smb/smb2_records.rs
rust/src/ssh/ssh.rs
rust/src/websocket/parser.rs
rust/src/x509/mod.rs