Fix rebrand function warnings
This commit is contained in:
parent
8fccc4a182
commit
ac4c7ed0d0
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ use config::Config;
|
||||||
pub fn rebrand(config: Config, input: String) -> Result<String, String> {
|
pub fn rebrand(config: Config, input: String) -> Result<String, String> {
|
||||||
let mut root = sciter_start(input);
|
let mut root = sciter_start(input);
|
||||||
let mut head = get_head(&mut root);
|
let mut head = get_head(&mut root);
|
||||||
let mut ele = find_first(&mut root, "meta[name='generator']");
|
let mut ele = find_first(&mut head, "meta[name='generator']");
|
||||||
ele.set_attribute("content", crate_name!());
|
ele.set_attribute("content", crate_name!()).expect("Failed to set generator.");
|
||||||
return Ok(get_html(root));
|
return Ok(get_html(root));
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue