1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

Pass by reference

This commit is contained in:
Roderick van Domburg 2022-08-03 22:26:52 +02:00
parent 70eb3f9d72
commit 80f0d3c59b
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4
11 changed files with 55 additions and 58 deletions

View file

@ -329,10 +329,10 @@ impl NamedSpotifyId {
Ok(dst)
}
pub fn from_spotify_id(id: SpotifyId, username: String) -> Self {
pub fn from_spotify_id(id: SpotifyId, username: &str) -> Self {
Self {
inner_id: id,
username,
username: username.to_owned(),
}
}
}