diff --git a/src/mach/load_command.rs b/src/mach/load_command.rs index 86b178c3f..c1d8e9f65 100644 --- a/src/mach/load_command.rs +++ b/src/mach/load_command.rs @@ -1,10 +1,10 @@ //! Load commands tell the kernel and dynamic linker anything from how to load this binary into memory, what the entry point is, apple specific information, to which libraries it requires for dynamic linking use crate::error; +use core::convert::{Try, TryFrom}; use core::fmt::{self, Display}; use scroll::{ctx, Endian}; use scroll::{IOread, IOwrite, Pread, Pwrite, SizeWith}; -use std::convert::TryFrom; /////////////////////////////////////// // Load Commands from mach-o/loader.h @@ -1010,7 +1010,7 @@ pub enum Platform { Watchos, } -impl std::convert::From for u32 { +impl From for u32 { fn from(platform: Platform) -> Self { match platform { Platform::Macos => LC_VERSION_MIN_MACOSX,