Skip to content

Commit

Permalink
mach/load_command: Prefer core over std
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Oct 11, 2020
1 parent d41fcfe commit bb766ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mach/load_command.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -1010,7 +1010,7 @@ pub enum Platform {
Watchos,
}

impl std::convert::From<Platform> for u32 {
impl From<Platform> for u32 {
fn from(platform: Platform) -> Self {
match platform {
Platform::Macos => LC_VERSION_MIN_MACOSX,
Expand Down

0 comments on commit bb766ee

Please sign in to comment.