Skip to content

Commit 094afef

Browse files
committed
Bunch of fixes
1 parent 711c7f7 commit 094afef

File tree

18 files changed

+395
-72
lines changed

18 files changed

+395
-72
lines changed

Cargo.lock

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pin-project-lite = "0.2"
146146
digest = "0.10"
147147
string-interner = "0.19"
148148
smallvec = "1.13"
149-
fuser = { git = "https://github.com/cberner/fuser" }
149+
fuser = { git = "https://github.com/cberner/fuser", features = ["libfuse"] }
150150

151151
# objc2 for macOS framework bindings
152152
objc2 = "0.6"

crates/fst/src/builder.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ impl FstBuilder {
252252

253253
// Phase 1: Assign node IDs in BFS order
254254
// Map from node pointer to assigned ID
255-
let mut node_ids: HashMap<*const BuilderNode, u32> =
256-
HashMap::new();
255+
let mut node_ids: HashMap<*const BuilderNode, u32> = HashMap::new();
257256
let mut queue: VecDeque<&BuilderNode> = VecDeque::new();
258257

259258
queue.push_back(root);
@@ -275,8 +274,7 @@ impl FstBuilder {
275274

276275
// Phase 2: Build NodeData in BFS order
277276
queue.push_back(root);
278-
let mut visited: HashSet<*const BuilderNode> =
279-
HashSet::new();
277+
let mut visited: HashSet<*const BuilderNode> = HashSet::new();
280278

281279
while let Some(node) = queue.pop_front() {
282280
let ptr = node as *const BuilderNode;

crates/fst/src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#[cfg(feature = "alloc")]
1212
use alloc::vec::Vec;
1313

14-
use fastvint::decode_vu64_slice;
1514
#[cfg(feature = "std")]
1615
use fastvint::WriteVintExt;
16+
use fastvint::decode_vu64_slice;
1717

1818
/// Header constants
1919
pub const MAGIC: &[u8; 4] = b"BFST";

0 commit comments

Comments
 (0)