rust: fix warnings