]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust(lint): replace checked_mul with saturating_mul
authorJason Ish <jason.ish@oisf.net>
Fri, 20 Aug 2021 17:29:37 +0000 (11:29 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Aug 2021 08:03:12 +0000 (10:03 +0200)
commitd0772e04b1483c342b3f639ef11309f342f8145b
tree2dd9cc008758f7c919418d34524d9b578dcd0261
parentd0be7541e9b8671dae34898912eab34873460980
rust(lint): replace checked_mul with saturating_mul

When defaulting checked_mul to u64::max, Rust has a method
that does the same thing called saturating_mul.
rust/src/asn1/mod.rs