1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Remove useless reference in Deck::encode_code

This commit is contained in:
Steffo 2022-08-22 18:15:54 +02:00
parent 639d84da03
commit d44391b264
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -30,7 +30,7 @@ impl Deck {
/// Encode a slice of [bytes](u8) into a deck code.
fn encode_code(bytes: &[u8]) -> String {
data_encoding::BASE32_NOPAD
.encode(&bytes)
.encode(bytes)
}
/// [Read] the header byte into a [format](DeckCodeFormat) and [version](DeckCodeVersion) tuple.