httpd: Use HashSet instead of BTreeSet

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex
2022-12-09 10:49:28 +01:00
committed by Alexis Sellier
parent a40d53743d
commit 0b138f2c0c
+2 -2
View File
@@ -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,