Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Oct 31, 2023
1 parent 02e7db1 commit d140480
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions examples/jssp/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
use std::{fs::File, error::Error, io::{BufReader, self}, path::{PathBuf, Path}, fmt::Display};
use std::{
error::Error,
fmt::Display,
fs::File,
io::{self, BufReader},
path::{Path, PathBuf},
};

use serde::Deserialize;

Expand Down Expand Up @@ -83,7 +89,7 @@ impl TryFrom<Args> for Config {
let mut partial_cfg = if let Some(ref cfg_file) = args.cfg_file {
match PartialConfig::try_from(cfg_file.to_owned()) {
Ok(cfg) => cfg,
Err(err) => return Err(format!("Error while loading config from file: {}", err))
Err(err) => return Err(format!("Error while loading config from file: {}", err)),
}
} else {
PartialConfig::empty()
Expand All @@ -108,4 +114,3 @@ impl TryFrom<Args> for Config {
Config::try_from(partial_cfg)
}
}

0 comments on commit d140480

Please sign in to comment.