Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/target

*.hdt
*.hdt.index.v1-1
*.hdt.index.v1-rust-cache
tests/resources/taxonomy-nodes.nq
Expand Down
159 changes: 112 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tempfile = "3.19"

[dev-dependencies]
criterion = { version = "0.5", features = ["async_tokio"]}
pprof = { version = "0.14", features = ["protobuf", "protobuf-codec", "criterion"] }
pprof = { version = "0.15", features = ["protobuf", "protobuf-codec", "criterion"] }
walkdir = "2.5"

[package.metadata.cargo-machete]
Expand Down
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ mod tests {
let hdt_reader = BufReader::new(source);
let h = Hdt::new(hdt_reader).expect("failed to load HDT file");
let t: Vec<(Arc<str>, Arc<str>, Arc<str>)> = h.triples().collect();
println!("{:?}", t);
println!("{t:?}");
assert_eq!(t.len(), 9);

// http://example.org/apple#Apple,http://example.org/apple#color,Red
Expand Down
4 changes: 2 additions & 2 deletions src/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl FourSectDictBuilder {
let source = match std::fs::File::open(nt_file) {
Ok(f) => f,
Err(e) => {
error!("Error opening file {:?}: {:?}", nt_file, e);
error!("Error opening file {nt_file:?}: {e:?}");
return Err(e.into());
}
};
Expand Down Expand Up @@ -145,7 +145,7 @@ impl FourSectDictBuilder {
let source = match std::fs::File::open(nt_file) {
Ok(f) => f,
Err(e) => {
error!("Error opening file {:?}: {:?}", nt_file, e);
error!("Error opening file {nt_file:?}: {e:?}");
return Err(e.into());
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn main() {
},
) {
Ok(_) => {}
Err(e) => eprintln!("Error writing: {}", e),
Err(e) => eprintln!("Error writing: {e}"),
}
}
None => {}
Expand Down
2 changes: 1 addition & 1 deletion src/rdf_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn convert_to_nt(
let source = match std::fs::File::open(&file) {
Ok(f) => f,
Err(e) => {
error!("Error opening file {:?}: {:?}", file, e);
error!("Error opening file {file:?}: {e:?}");
return Err(e.into());
}
};
Expand Down