Skip to content

Commit fe3f489

Browse files
authored
Merge pull request #2 from DeciSym/bharathselvaraj/protobuf-security-vuln
chore: update pprof to v0.15 for security fix and apply clippy string…
2 parents 9ef79e1 + 90f3d5e commit fe3f489

7 files changed

Lines changed: 119 additions & 54 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/target
2-
2+
*.hdt
33
*.hdt.index.v1-1
44
*.hdt.index.v1-rust-cache
55
tests/resources/taxonomy-nodes.nq

Cargo.lock

Lines changed: 112 additions & 47 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
@@ -29,7 +29,7 @@ tempfile = "3.19"
2929

3030
[dev-dependencies]
3131
criterion = { version = "0.5", features = ["async_tokio"]}
32-
pprof = { version = "0.14", features = ["protobuf", "protobuf-codec", "criterion"] }
32+
pprof = { version = "0.15", features = ["protobuf", "protobuf-codec", "criterion"] }
3333
walkdir = "2.5"
3434

3535
[package.metadata.cargo-machete]

src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ mod tests {
331331
let hdt_reader = BufReader::new(source);
332332
let h = Hdt::new(hdt_reader).expect("failed to load HDT file");
333333
let t: Vec<(Arc<str>, Arc<str>, Arc<str>)> = h.triples().collect();
334-
println!("{:?}", t);
334+
println!("{t:?}");
335335
assert_eq!(t.len(), 9);
336336

337337
// http://example.org/apple#Apple,http://example.org/apple#color,Red

src/dictionary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl FourSectDictBuilder {
6464
let source = match std::fs::File::open(nt_file) {
6565
Ok(f) => f,
6666
Err(e) => {
67-
error!("Error opening file {:?}: {:?}", nt_file, e);
67+
error!("Error opening file {nt_file:?}: {e:?}");
6868
return Err(e.into());
6969
}
7070
};
@@ -145,7 +145,7 @@ impl FourSectDictBuilder {
145145
let source = match std::fs::File::open(nt_file) {
146146
Ok(f) => f,
147147
Err(e) => {
148-
error!("Error opening file {:?}: {:?}", nt_file, e);
148+
error!("Error opening file {nt_file:?}: {e:?}");
149149
return Err(e.into());
150150
}
151151
};

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fn main() {
9696
},
9797
) {
9898
Ok(_) => {}
99-
Err(e) => eprintln!("Error writing: {}", e),
99+
Err(e) => eprintln!("Error writing: {e}"),
100100
}
101101
}
102102
None => {}

src/rdf_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn convert_to_nt(
2323
let source = match std::fs::File::open(&file) {
2424
Ok(f) => f,
2525
Err(e) => {
26-
error!("Error opening file {:?}: {:?}", file, e);
26+
error!("Error opening file {file:?}: {e:?}");
2727
return Err(e.into());
2828
}
2929
};

0 commit comments

Comments
 (0)