Skip to content

Commit 8fdd3f7

Browse files
committed
Don't dereference just to borrow again.
1 parent 09b0da8 commit 8fdd3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/convert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<'a> ToPlaylistName for &'a Playlist {
4545

4646
impl<'a> ToPlaylistName for &'a String {
4747
fn to_name(&self) -> &str {
48-
&*self
48+
self
4949
}
5050
}
5151

0 commit comments

Comments
 (0)