Skip to content

Commit

Permalink
Fix clippy warning on immutable deref reborrow
Browse files Browse the repository at this point in the history
  • Loading branch information
boustrophedon committed Oct 13, 2022
1 parent b540495 commit 15ac7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl FeedEntry {
}

let pub_date = entry.pub_date.as_ref().unwrap();
let pub_date_res = DateTime::parse_from_rfc2822(&*pub_date);
let pub_date_res = DateTime::parse_from_rfc2822(pub_date);
if let Err(err) = pub_date_res {
return Err(err)
.context("Entry pub date did not parse correctly.");
Expand Down

0 comments on commit 15ac7e9

Please sign in to comment.