From 77e94499a0a2fd0cc1196df532dea79d529875fe Mon Sep 17 00:00:00 2001 From: Dashon Wells Date: Wed, 2 Aug 2023 11:13:39 -0500 Subject: [PATCH] use a char instead of string literal --- src/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer.rs b/src/renderer.rs index 5f1677f..028925b 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -267,7 +267,7 @@ fn wget_footer(abs_path: &Uri, root_dir_name: Option<&str>, current_user: Option None => String::new(), }; - let encoded_abs_path = abs_path.to_string().replace("'", "%27"); + let encoded_abs_path = abs_path.to_string().replace('\'', "%27"); let command = format!( "wget -rcnHp -R 'index.html*'{cut_dirs}{user_params} '{encoded_abs_path}?raw=true'" );