mirror of https://github.com/OISF/suricata
rust(lint): don't use unwrap_or for function calls
Calling a function in unwrap_or causes that function to always be called even when not needed. Instead use unwrap_or_else with a closure which will only be called when needed.pull/6304/head
parent
602bb05e75
commit
5bf5de3350
Loading…
Reference in New Issue