diff --git a/src/plot/absolute.rs b/src/plot/absolute.rs index b826ef2..6333c66 100644 --- a/src/plot/absolute.rs +++ b/src/plot/absolute.rs @@ -40,9 +40,7 @@ fn find_artist_dates(entries: &Vec, art: &Artist) -> Vec let mut dates = Vec::>::new(); for entry in entries { - let artist = Artist::new(entry.artist.clone()); - - if artist == *art { + if entry.artist.eq(&art.name) { dates.push(entry.timestamp); } }