Skip to content

Commit 9f30c16

Browse files
committed
refactor: revert build_benchmark_jsons.rs
Signed-off-by: ShigrafS <shigrafsalik@proton.me>
1 parent aeacf23 commit 9f30c16

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

bench/src/build_benchmark_jsons.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ use std::{fs::File, io::BufReader};
1515
mod utils;
1616

1717
fn main() {
18-
let tauri_root = utils::tauri_root_path().expect("Failed to get Tauri root path");
19-
20-
let tauri_data = tauri_root.join("gh-pages").join("tauri-data.json");
21-
let tauri_recent = tauri_root.join("gh-pages").join("tauri-recent.json");
18+
let tauri_data = &utils::tauri_root_path()
19+
.join("gh-pages")
20+
.join("tauri-data.json");
21+
let tauri_recent = &utils::tauri_root_path()
22+
.join("gh-pages")
23+
.join("tauri-recent.json");
2224

2325
// current data
2426
let current_data_buffer = BufReader::new(
@@ -29,7 +31,7 @@ fn main() {
2931

3032
// all data's
3133
let all_data_buffer =
32-
BufReader::new(File::open(&tauri_data).expect("Unable to read all data file"));
34+
BufReader::new(File::open(tauri_data).expect("Unable to read all data file"));
3335
let mut all_data: Vec<utils::BenchResult> =
3436
serde_json::from_reader(all_data_buffer).expect("Unable to read all data buffer");
3537

0 commit comments

Comments
 (0)