diff --git a/src/game.rs b/src/game.rs index d6a69d2..5922761 100644 --- a/src/game.rs +++ b/src/game.rs @@ -255,7 +255,7 @@ impl Game { } if ! avatar_exists { - warnings.push(crate::Error::Game { missing: NotFound::Avatar}); + warnings.push(crate::Error::Game { missing: NotFound::Avatar }); } Ok( diff --git a/src/sprite.rs b/src/sprite.rs index 984f800..2a7adda 100644 --- a/src/sprite.rs +++ b/src/sprite.rs @@ -51,9 +51,7 @@ impl Sprite { format!("\n{}", lines.join("\n")) } } -} - -impl Sprite { + pub fn from_str(str: &str) -> Result { let mut lines: Vec<&str> = str.lines().collect();