mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-25 04:52:32 +00:00
remove unused import on windows
This commit is contained in:
parent
b5fb200a91
commit
e8dc02d578
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,6 @@ use roc_collections::all::MutMap;
|
||||||
use roc_error_macros::{internal_error, user_error};
|
use roc_error_macros::{internal_error, user_error};
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::fs;
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::os::raw::c_char;
|
use std::os::raw::c_char;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
@ -1016,6 +1015,7 @@ pub(crate) fn surgery_elf(
|
||||||
// Make sure the final executable has permision to execute.
|
// Make sure the final executable has permision to execute.
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
{
|
{
|
||||||
|
use std::fs;
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
|
|
||||||
let mut perms = fs::metadata(executable_path)
|
let mut perms = fs::metadata(executable_path)
|
||||||
|
|
|
@ -10,7 +10,6 @@ use object::{
|
||||||
use roc_collections::all::MutMap;
|
use roc_collections::all::MutMap;
|
||||||
use roc_error_macros::internal_error;
|
use roc_error_macros::internal_error;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::fs;
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
|
@ -1189,6 +1188,7 @@ pub(crate) fn surgery_macho(
|
||||||
// Make sure the final executable has permision to execute.
|
// Make sure the final executable has permision to execute.
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
{
|
{
|
||||||
|
use std::fs;
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
|
|
||||||
let mut perms = fs::metadata(executable_path)
|
let mut perms = fs::metadata(executable_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue