That’s just brilliant.
To be fair, these alternatives are also limited to the case where the item type stays the same.
map()
can still be used with Vec::iter_mut()
, filter_map()
can be replaced with Vec::retain_mut()
.
I think the better solution would be to use Vec::retain()
.
Tl;dr: std::process::Command
is vulnerable to shell injection if you invoke cmd.exe
or *.{cmd,bat}
on Windows.
Does “cross platform apps” include Windows in your case? If so, how is your experience compiling and packaging a libadwaita app for Windows?
Thanks for coming back to this!