From ac4c7ed0d0ff65d8989ab2bf6556b495247624bc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 9 Sep 2017 18:02:03 +0100 Subject: [PATCH] Fix rebrand function warnings --- src/processors/rebrand.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/processors/rebrand.rs b/src/processors/rebrand.rs index 2f03db8..21f3fbf 100644 --- a/src/processors/rebrand.rs +++ b/src/processors/rebrand.rs @@ -5,7 +5,7 @@ use config::Config; pub fn rebrand(config: Config, input: String) -> Result { 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)); }