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:
parent
70eb3f9d72
commit
80f0d3c59b
11 changed files with 55 additions and 58 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue