httpd: Use `HashSet` instead of `BTreeSet`
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
parent
d4d40b1492
commit
46951b1b42
|
|
@ -1,4 +1,4 @@
|
||||||
use std::collections::BTreeSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
use axum::handler::Handler;
|
use axum::handler::Handler;
|
||||||
use axum::http::{header, HeaderValue};
|
use axum::http::{header, HeaderValue};
|
||||||
|
|
@ -426,7 +426,7 @@ fn stats<R: WriteRepository>(repo: &R) -> Result<Stats, Error> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect::<BTreeSet<_>>();
|
.collect::<HashSet<_>>();
|
||||||
|
|
||||||
Ok(Stats {
|
Ok(Stats {
|
||||||
branches,
|
branches,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue