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

Use single fixed-width format! macro for SpotifyId.to_base16

This commit is contained in:
Will Stott 2019-10-22 18:31:18 +01:00
parent ac1c31b786
commit a7243ff8ce
2 changed files with 4 additions and 1 deletions

View file

@ -55,7 +55,7 @@ impl SpotifyId {
}
pub fn to_base16(&self) -> String {
format!("{:0>32}", format!("{:x}", self.0))
format!("{:032x}", self.0)
}
pub fn to_base62(&self) -> String {