mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
use vector to keep the order from the arguments list
This commit is contained in:
parent
52fc71a30a
commit
c8e0215e1c
3 changed files with 7 additions and 8 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue