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

Remove useless reference in Deck::from_code

This commit is contained in:
Steffo 2022-08-22 18:18:18 +02:00
parent 139de76961
commit 60060b9a31
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -288,7 +288,7 @@ impl Deck {
/// .expect("deck to be deserialized successfully"); /// .expect("deck to be deserialized successfully");
/// ``` /// ```
pub fn from_code(code: &str) -> DeckDecodingResult<Deck> { pub fn from_code(code: &str) -> DeckDecodingResult<Deck> {
let mut cursor = Cursor::new(Self::decode_code(&code)?); let mut cursor = Cursor::new(Self::decode_code(code)?);
let (format, _version) = Self::read_header(&mut cursor)?; let (format, _version) = Self::read_header(&mut cursor)?;