rs: silence warnings/fix aliasing violations