Skip to content

Commit

Permalink
Fix clone_from() warning
Browse files Browse the repository at this point in the history
  • Loading branch information
markpritchard committed May 4, 2024
1 parent 33036d2 commit 59a91f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feed-rs/src/parser/json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn accumulate_author(authors: &mut Vec<Person>, ja: &JsonAuthor) {
if let Some(name) = &ja.name {
if !authors.iter().any(|a| a.name.as_str() == name) {
let mut person = Person::new(name);
person.uri = ja.url.clone();
person.uri.clone_from(&ja.url);

authors.push(person);
}
Expand Down

0 comments on commit 59a91f3

Please sign in to comment.