Skip to content

Commit c273b4a

Browse files
committed
make fmt happy
1 parent ac43025 commit c273b4a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tools/build-examples/src/bin/update-wasm-opt.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ fn main() -> ExitCode {
5050
}
5151

5252
if outdated_examples.is_empty() {
53-
println!(
54-
"All examples are up-to-date with the latest wasm_opt version: {latest_wasm_opt}"
55-
);
53+
println!("All examples are up-to-date with the latest wasm_opt version: {latest_wasm_opt}");
5654
return ExitCode::from(0);
5755
}
5856

@@ -67,9 +65,7 @@ fn main() -> ExitCode {
6765
println!("Updating all examples...");
6866

6967
let updated_count = update_all_examples(&outdated_example_paths, &latest_wasm_opt);
70-
println!(
71-
"Updated {updated_count} example configurations to use {latest_wasm_opt}"
72-
);
68+
println!("Updated {updated_count} example configurations to use {latest_wasm_opt}");
7369

7470
ExitCode::from(0)
7571
}

tools/build-examples/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ pub fn get_latest_wasm_opt_version() -> String {
3232
.text()
3333
.unwrap_or_else(|_| "Could not read error response".to_string());
3434

35-
panic!(
36-
"GitHub API request failed with status: {status}. Details: {error_text}"
37-
);
35+
panic!("GitHub API request failed with status: {status}. Details: {error_text}");
3836
}
3937

4038
let release: GitHubRelease = res.json().expect("Failed to parse GitHub API response");

0 commit comments

Comments
 (0)