INNER CODE UNIT · Rust
repo_info
flosse/rust-web-framework-comparison · src/main.rs:448
fn repo_info(name: &str, repo: &Url) -> RepoInfo {
let (repo, stars, contributors, activity) = match repo.host() {
Some(Host::Domain("github.com")) => {
let path = repo.path();
let repo =
format!("[]({repo})");
let stars =
format!("");
let contributors = format!("");
let activity = format!("");
(repo, stars, contributors, activity)
}
Some(Host::Domain("gitlab.com")) => (
format!("[]({repo})"),
String::new(),
String::new(),
String::new(),
),