Skip to content

Commit

Permalink
Remove unnecessary allocations found by clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Apr 17, 2022
1 parent 0824446 commit f34ac36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension/itunes/itunes_item_extension.rs
Expand Up @@ -591,15 +591,15 @@ impl ToXml for ITunesItemExtension {
}

if let Some(episode) = self.episode.as_ref() {
writer.write_text_element(b"itunes:episode", episode.to_string())?;
writer.write_text_element(b"itunes:episode", episode)?;
}

if let Some(season) = self.season.as_ref() {
writer.write_text_element(b"itunes:season", season.to_string())?;
writer.write_text_element(b"itunes:season", season)?;
}

if let Some(episode_type) = self.episode_type.as_ref() {
writer.write_text_element(b"itunes:episodeType", episode_type.to_string())?;
writer.write_text_element(b"itunes:episodeType", episode_type)?;
}

Ok(())
Expand Down

0 comments on commit f34ac36

Please sign in to comment.