diff --git a/src/repositories/updater.rs b/src/repositories/updater.rs index 534fa8af9..43d29acd0 100644 --- a/src/repositories/updater.rs +++ b/src/repositories/updater.rs @@ -308,7 +308,7 @@ impl RepositoryStatsUpdater { } } -pub(crate) fn repository_name(url: &str) -> Option { +pub(crate) fn repository_name(url: &str) -> Option> { static RE: LazyLock = LazyLock::new(|| { Regex::new(r"https?://(?P[^/]+)/(?P[\w\._/-]+)/(?P[\w\._-]+)").unwrap() });