1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 17:59:24 +02:00

Migrate to Rust 2021

This commit is contained in:
Roderick van Domburg 2022-08-02 21:42:38 +02:00
parent ebfe8ca36c
commit 2a79af1f0a
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4
19 changed files with 25 additions and 25 deletions

View file

@ -21,13 +21,13 @@ impl FileId {
}
impl fmt::Debug for FileId {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("FileId").field(&self.to_base16()).finish()
}
}
impl fmt::Display for FileId {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(&self.to_base16().unwrap_or_default())
}
}