1
Fork 0

Fix unused import warning

TryInto is part of the 2021 edition prelude
This commit is contained in:
bjorn3 2021-09-27 11:20:04 +02:00
parent 9e48f99e8d
commit adc2793e7d

View file

@ -69,8 +69,6 @@ impl WriterRelocate {
/// Perform the collected relocations to be usable for JIT usage.
#[cfg(feature = "jit")]
pub(super) fn relocate_for_jit(mut self, jit_module: &cranelift_jit::JITModule) -> Vec<u8> {
use std::convert::TryInto;
for reloc in self.relocs.drain(..) {
match reloc.name {
super::DebugRelocName::Section(_) => unreachable!(),