archive
/
md-pdf-rs
Archived
1
Fork 0

Fix rebrand function warnings

This commit is contained in:
Jake Howard 2017-09-09 18:02:03 +01:00
parent 8fccc4a182
commit ac4c7ed0d0
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ use config::Config;
pub fn rebrand(config: Config, input: String) -> Result<String, String> {
let mut root = sciter_start(input);
let mut head = get_head(&mut root);
let mut ele = find_first(&mut root, "meta[name='generator']");
ele.set_attribute("content", crate_name!());
let mut ele = find_first(&mut head, "meta[name='generator']");
ele.set_attribute("content", crate_name!()).expect("Failed to set generator.");
return Ok(get_html(root));
}