use vector to keep the order from the arguments list

This commit is contained in:
yggverse 2025-08-05 18:27:42 +03:00
parent 52fc71a30a
commit c8e0215e1c
3 changed files with 7 additions and 8 deletions

View file

@ -1,5 +1,4 @@
use crate::format;
use std::collections::HashSet;
use url::Url;
/// Export crawl index to the RSS file
@ -7,7 +6,7 @@ pub struct Feed {
description: Option<String>,
link: Option<String>,
title: String,
trackers: Option<HashSet<Url>>,
trackers: Option<Vec<Url>>,
}
impl Feed {
@ -15,7 +14,7 @@ impl Feed {
title: String,
description: Option<String>,
link: Option<Url>,
trackers: Option<HashSet<Url>>,
trackers: Option<Vec<Url>>,
) -> Self {
Self {
description: description.map(escape),