Skip to content

Commit 8c5ab8e

Browse files
committed
Apply pre-commit
1 parent 1fbcb58 commit 8c5ab8e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/optimisation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ pub fn run(settings_file_path: &Path) {
1313

1414
// Calculate solution
1515
let solution = solve_highs(&definitions, &constraints, Sense::Maximise)
16-
.unwrap_or_else(|err| panic!("Failed to calculate a solution: {:?}", err));
17-
println!("Calculated solution: {:?}", solution);
16+
.unwrap_or_else(|err| panic!("Failed to calculate a solution: {err:?}"));
17+
println!("Calculated solution: {solution:?}");
1818
}

src/settings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ struct InputFiles {
2626
/// Read a settings file from the given path.
2727
fn read_settings_file(path: &Path) -> Settings {
2828
let config_str = fs::read_to_string(path)
29-
.unwrap_or_else(|err| panic!("Failed to read file {:?}: {:?}", path, err));
29+
.unwrap_or_else(|err| panic!("Failed to read file {path:?}: {err:?}"));
3030
toml::from_str(&config_str)
31-
.unwrap_or_else(|err| panic!("Could not parse settings file: {:?}", err))
31+
.unwrap_or_else(|err| panic!("Could not parse settings file: {err:?}"))
3232
}
3333

3434
/// Read settings from disk.

0 commit comments

Comments
 (0)