mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
httpd: Use HashSet instead of BTreeSet
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user