Fix odd compilation error on newer Rust
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1fe590925b
commit
46088bb627
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gemfreely"
|
||||
version = "0.1.7"
|
||||
version = "0.1.8"
|
||||
edition = "2021"
|
||||
license = "AGPL-3.0-or-later"
|
||||
description = "Synchronize Gemini protocol blogs to the Fediverse"
|
||||
|
|
|
@ -146,7 +146,11 @@ impl Gemfeed {
|
|||
settings: &GemfeedParserSettings,
|
||||
) -> Result<Gemfeed> {
|
||||
if let Some(content) = resp.content() {
|
||||
let feed = content.parse::<AtomFeed>()?;
|
||||
let feed = match content.parse::<AtomFeed>() {
|
||||
Ok(feed) => feed,
|
||||
Err(_) => return Err(anyhow!("Could not parse Atom feed")),
|
||||
};
|
||||
|
||||
let entries = parse_atom(&feed, settings)?;
|
||||
let title = feed.title();
|
||||
Ok(Self::new(url, title, entries))
|
||||
|
@ -245,7 +249,7 @@ impl GemfeedEntry {
|
|||
slug: self.slug,
|
||||
published: self.published,
|
||||
url: self.url,
|
||||
body: OnceCell::from(body)
|
||||
body: OnceCell::from(body),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue