Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/optimisation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ pub fn run(settings_file_path: &Path) {

// Calculate solution
let solution = solve_highs(&definitions, &constraints, Sense::Maximise)
.unwrap_or_else(|err| panic!("Failed to calculate a solution: {:?}", err));
println!("Calculated solution: {:?}", solution);
.unwrap_or_else(|err| panic!("Failed to calculate a solution: {err:?}"));
println!("Calculated solution: {solution:?}");
}
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ struct InputFiles {
/// Read a settings file from the given path.
fn read_settings_file(path: &Path) -> Settings {
let config_str = fs::read_to_string(path)
.unwrap_or_else(|err| panic!("Failed to read file {:?}: {:?}", path, err));
.unwrap_or_else(|err| panic!("Failed to read file {path:?}: {err:?}"));
toml::from_str(&config_str)
.unwrap_or_else(|err| panic!("Could not parse settings file: {:?}", err))
.unwrap_or_else(|err| panic!("Could not parse settings file: {err:?}"))
}

/// Read settings from disk.
Expand Down
Loading