Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Use `HashSet` instead of `BTreeSet`
xphoniex committed 3 years ago
commit 0b138f2c0c0720557b469b83dd594b0a72cc51b2
parent a40d53743dab8133d4ede6a5573e3f6e6f388c17
1 file changed +2 -2
modified radicle-httpd/src/api/v1/projects.rs
@@ -1,4 +1,4 @@
-
use std::collections::BTreeSet;
+
use std::collections::HashSet;

use axum::handler::Handler;
use axum::http::{header, HeaderValue};
@@ -426,7 +426,7 @@ fn stats<R: WriteRepository>(repo: &R) -> Result<Stats, Error> {
                None
            }
        })
-
        .collect::<BTreeSet<_>>();
+
        .collect::<HashSet<_>>();

    Ok(Stats {
        branches,