Fix warnings, remove target

cc https://github.com/rust-lang/rust/issues/12327