Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Aug 1, 2024
1 parent 8c32547 commit fdf997e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ pub fn sort_crawled_instances(l: &[CrawledInstance]) -> askama::Result<Vec<Crawl
Ok(new)
}

pub fn sort_crawled_services(l: &HashMap<String, CrawledService>) -> askama::Result<Vec<(&String, &CrawledService)>> {
pub fn sort_crawled_services(
l: &HashMap<String, CrawledService>,
) -> askama::Result<Vec<(&String, &CrawledService)>> {
let mut new = l.iter().collect::<Vec<_>>();
new.sort_by(|a, b| a.1.name.cmp(&b.1.name));
Ok(new.to_owned())
Expand Down

0 comments on commit fdf997e

Please sign in to comment.