httpd: Use `HashSet` instead of `BTreeSet`

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex 2022-12-08 19:33:25 +00:00 committed by Alexis Sellier
parent d4d40b1492
commit 46951b1b42
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

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,