Skip to content

Commit c188047

Browse files
committed
Use rss-for-mikan.
1 parent a3c283f commit c188047

5 files changed

Lines changed: 9 additions & 11 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ daemonize = "0.5.0"
2525
futures = "0.3.28"
2626
log = "0.4"
2727
reqwest = { version = "0.11", features = ["json"] }
28-
rss = { version = "2.0" }
28+
rss-for-mikan = { version = "2.0.4-mikan" }
2929
sensible-env-logger = { version = "0.3", features = ["local-time"] }
3030
serde = { version = "1.0.145", features = ["derive"] }
3131
serfig = "0.0.2"
3232
tokio = { version = "1.28.0", features = ["rt-multi-thread", "macros"] }
33-
34-
[patch.crates-io]
35-
rss = { git = "https://github.com/RinChanNOWWW/rss", branch = "patch-mikan" }

src/source/byrbt/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Byrbt;
2424

2525
impl Byrbt {
2626
pub fn parse_items<R: BufRead>(content: R) -> Result<Vec<Item>> {
27-
let channel = rss::Channel::read_from(content)?;
27+
let channel = rss_for_mikan::Channel::read_from(content)?;
2828

2929
Ok(channel
3030
.items

src/source/mikan/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Mikan;
2424

2525
impl Mikan {
2626
pub fn parse_items<R: BufRead>(content: R) -> Result<Vec<Item>> {
27-
let channel = rss::Channel::read_from(content)?;
27+
let channel = rss_for_mikan::Channel::read_from(content)?;
2828

2929
Ok(channel
3030
.items

src/source/tjupt/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct Tjupt;
2424

2525
impl Tjupt {
2626
pub fn parse_items<R: BufRead>(content: R) -> Result<Vec<Item>> {
27-
let channel = rss::Channel::read_from(content)?;
27+
let channel = rss_for_mikan::Channel::read_from(content)?;
2828

2929
Ok(channel
3030
.items

0 commit comments

Comments
 (0)