Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed May 6, 2024
1 parent f579ee7 commit a3c332f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sync/reader/atom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl ReadFeed for AtomReader {
let mut feed = FetchedFeed::from(atom_feed);

if feed.link.is_empty() {
feed.link = self.url.clone();
feed.link.clone_from(&self.url);
}

Ok(feed)
Expand Down
2 changes: 1 addition & 1 deletion src/sync/reader/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl ReadFeed for JsonReader {
match parser::parse(data) {
Ok(feed) => {
let mut fetched_feed = FetchedFeed::from(feed);
fetched_feed.link = self.url.clone();
fetched_feed.link.clone_from(&self.url);

Ok(fetched_feed)
}
Expand Down

0 comments on commit a3c332f

Please sign in to comment.