File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ use std::{fs::File, io::BufReader};
1515mod utils;
1616
1717fn 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
You can’t perform that action at this time.
0 commit comments