From bb766ee0a7e840a6b7878e63408132d3c94b2bf3 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Sun, 11 Oct 2020 16:20:40 -0400 Subject: [PATCH] mach/load_command: Prefer core over std --- src/mach/load_command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,