From 716554e88b83072255669dbcfeb8a2990255445e Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Tue, 23 Jun 2020 13:05:53 +0100 Subject: [PATCH] error for parsing game --- src/game.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game.rs b/src/game.rs index d29284b..881da58 100644 --- a/src/game.rs +++ b/src/game.rs @@ -102,8 +102,11 @@ pub struct Game { pub(crate) line_endings_crlf: bool, // otherwise lf (unix/mac) } +#[derive(Debug)] +pub struct GameHasNoAvatar; + impl Game { - pub fn from(string: String) -> Result { + pub fn from(string: String) -> Result { let line_endings_crlf = string.contains("\r\n"); let mut string = string; if line_endings_crlf {