Use char instead of str

This commit is contained in:
Riley-Kilgore 2024-07-31 07:39:41 -07:00 committed by Lucas
parent 9296516f5a
commit 5160ab49de
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ pub fn uri_to_module_name(uri: &url::Url, root: &Path) -> Option<String> {
.ok()?
.components()
.skip(1)
.map(|c| c.as_os_str().to_string_lossy().replace("-", "_"));
.map(|c| c.as_os_str().to_string_lossy().replace('-', "_"));
let module_name = Itertools::intersperse(components, "/".into())
.collect::<String>()