Skip to content

Commit 774f251

Browse files
committed
fix: replace libc dependency with platform_lib in tests for Unix permissions
1 parent e825487 commit 774f251

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ kode-bridge = { version = "0.3.4", default-features = false, features = [
8989
] }
9090
serial_test = "3.2.0"
9191

92-
[target.'cfg(unix)'.dev-dependencies]
93-
libc = "0.2.177"
94-
9592
[profile.release]
9693
panic = "abort"
9794
lto = "thin"

tests/test_start_permissions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mod tests {
3939
let permissions = permision.permissions();
4040
#[cfg(unix)]
4141
{
42-
use libc::{S_IRWXU, S_IRWXG, S_IRWXO};
42+
use platform_lib::{S_IRWXU, S_IRWXG, S_IRWXO};
4343
let mask = (S_IRWXU | S_IRWXG | S_IRWXO) as u32;
4444
assert_eq!(
4545
permissions.mode() & mask,

0 commit comments

Comments
 (0)