mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
try 2
This commit is contained in:
parent
8143bbf87e
commit
c9bdac41d8
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ use std::collections::hash_map::RandomState;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::fs::Permissions;
|
use std::fs::Permissions;
|
||||||
use std::io::BufWriter;
|
use std::io::BufWriter;
|
||||||
|
#[cfg(unix)]
|
||||||
use std::os::unix::prelude::PermissionsExt;
|
use std::os::unix::prelude::PermissionsExt;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
@ -163,6 +164,7 @@ cargo check
|
||||||
"#
|
"#
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
file.set_permissions(Permissions::from_mode(0o777))?;
|
file.set_permissions(Permissions::from_mode(0o777))?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue