diff --git a/src/css.rs b/src/css.rs index 2e16df77..0bae763c 100644 --- a/src/css.rs +++ b/src/css.rs @@ -88,8 +88,8 @@ pub fn process_css<'a>( ) -> Result> { let mut result: String = "".to_string(); - let mut curr_rule: String = rule_name.clone().to_string(); - let mut curr_prop: String = prop_name.clone().to_string(); + let mut curr_rule: String = rule_name.to_string(); + let mut curr_prop: String = prop_name.to_string(); let mut token: &Token; let mut token_offset: SourcePosition; diff --git a/src/html.rs b/src/html.rs index 89c03288..f169b95a 100644 --- a/src/html.rs +++ b/src/html.rs @@ -601,7 +601,7 @@ pub fn retrieve_and_embed_asset( options: &Options, depth: u32, ) { - let resolved_url: Url = resolve_url(document_url, attr_value.clone()); + let resolved_url: Url = resolve_url(document_url, attr_value); match retrieve_asset( cache,