diff options
| author | Fuwn <[email protected]> | 2022-03-08 04:40:59 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-08 04:40:59 -0800 |
| commit | 6fa98e36121f0db4a3c8eb909cfedb7991022efc (patch) | |
| tree | a82de483a78ef471ed7611e61b64133b5a4cc7e7 | |
| parent | fix: cors (diff) | |
| download | api-worker-6fa98e36121f0db4a3c8eb909cfedb7991022efc.tar.xz api-worker-6fa98e36121f0db4a3c8eb909cfedb7991022efc.zip | |
refactor(utils): String to char
| -rw-r--r-- | src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs index d1083a9..d48ff34 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -82,7 +82,7 @@ pub async fn filter_images_by_language(language: &str) -> Vec<String> { constants::GITHUB_USER_CONTENT, // Pound symbols to URL (percent) encoding of pound symbol because we // are pushing a URL, not a string - item.path.replace("#", "%23") + item.path.replace('#', "%23") )); } } |