Fix indentation in create_config macro definition
This commit is contained in:
parent
bbd6d9cd55
commit
b33451b4ed
@ -398,21 +398,21 @@ fn set_license_template(&mut self) {
|
||||
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;
|
||||
}
|
||||
};
|
||||
@ -420,7 +420,7 @@ fn set_license_template(&mut self) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user