File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ struct InputFiles {
2626/// Read a settings file from the given path.
2727fn 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.
You can’t perform that action at this time.
0 commit comments