remove unused import on windows

This commit is contained in:
Folkert 2022-10-15 20:30:59 +02:00
parent b5fb200a91
commit e8dc02d578
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,6 @@ use roc_collections::all::MutMap;
use roc_error_macros::{internal_error, user_error};
use std::convert::TryFrom;
use std::ffi::CStr;
use std::fs;
use std::mem;
use std::os::raw::c_char;
use std::path::Path;
@ -1016,6 +1015,7 @@ pub(crate) fn surgery_elf(
// Make sure the final executable has permision to execute.
#[cfg(target_family = "unix")]
{
use std::fs;
use std::os::unix::fs::PermissionsExt;
let mut perms = fs::metadata(executable_path)

View file

@ -10,7 +10,6 @@ use object::{
use roc_collections::all::MutMap;
use roc_error_macros::internal_error;
use std::ffi::CStr;
use std::fs;
use std::mem;
use std::path::Path;
use std::time::{Duration, Instant};
@ -1189,6 +1188,7 @@ pub(crate) fn surgery_macho(
// Make sure the final executable has permision to execute.
#[cfg(target_family = "unix")]
{
use std::fs;
use std::os::unix::fs::PermissionsExt;
let mut perms = fs::metadata(executable_path)