Skip to content

Commit 7caa85c

Browse files
committed
Remove unused import and fix Cargo.toml to use cfg(target_os = "macos")
1 parent f85ca94 commit 7caa85c

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ keywords = ["fuse", "filesystem", "branching", "copy-on-write"]
99
categories = ["filesystem"]
1010

1111
[dependencies]
12-
[target.'cfg(target_os = "linux")'.dependencies]
13-
fuser = { version = "0.16", features = ["abi-7-40", "libfuse"] }
14-
15-
[target.'cfg(not(target_os = "linux"))'.dependencies]
16-
fuser = { version = "0.16", features = ["abi-7-31", "libfuse"] }
1712
clap = { version = "4", features = ["derive"] }
1813
serde = { version = "1", features = ["derive"] }
1914
serde_json = "1"
@@ -26,3 +21,9 @@ dashmap = "5"
2621
anyhow = "1"
2722
thiserror = "1"
2823
uuid = { version = "1", features = ["v4"] }
24+
25+
[target.'cfg(target_os = "linux")'.dependencies]
26+
fuser = { version = "0.16", features = ["abi-7-40", "libfuse"] }
27+
28+
[target.'cfg(target_os = "macos")'.dependencies]
29+
fuser = { version = "0.16", features = ["abi-7-31", "libfuse"] }

tests/test_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::process::{Command, Stdio};
1111
use std::thread;
1212
use std::time::Duration;
1313

14-
use branchfs::{FS_IOC_BRANCH_ABORT, FS_IOC_BRANCH_COMMIT, FS_IOC_BRANCH_CREATE};
14+
1515

1616
/// Helper: CREATE a branch. Returns the new branch name.
1717
unsafe fn ioctl_create(fd: i32) -> Result<String, i32> {

0 commit comments

Comments
 (0)