Skip to content

Commit

Permalink
Fix indentation in create_config macro definition
Browse files Browse the repository at this point in the history
  • Loading branch information
dlukes committed Mar 5, 2018
1 parent bbd6d9c commit b33451b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/config/config_type.rs
Expand Up @@ -398,29 +398,29 @@ macro_rules! create_config {
Ok(file) => file,
Err(e) => {
eprintln!("Warning: unable to open license template file {:?}: {}",
license_template_path, e);
license_template_path, e);
return;
}
};
let mut license_template_str = String::new();
if let Err(e) = license_template_file.read_to_string(&mut license_template_str) {
eprintln!("Warning: unable to read from license template file {:?}: {}",
license_template_path, e);
license_template_path, e);
return;
};
let license_template_parsed = match TemplateParser::parse(&license_template_str) {
Ok(string) => string,
Err(e) => {
eprintln!("Warning: unable to parse license template file {:?}: {}",
license_template_path, e);
license_template_path, e);
return;
}
};
self.license_template = match Regex::new(&license_template_parsed) {
Ok(re) => Some(re),
Err(e) => {
eprintln!("Warning: regex syntax error in placeholder, unable to compile \
license template from file {:?}: {}", license_template_path, e);
license template from file {:?}: {}", license_template_path, e);
return;
}
}
Expand Down

0 comments on commit b33451b

Please sign in to comment.