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

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));
}