This commit is contained in:
Max Bradbury 2020-10-18 18:05:14 +01:00
parent 66cb9bdd4d
commit 46f8831c7b
2 changed files with 2 additions and 4 deletions

View File

@ -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(

View File

@ -51,9 +51,7 @@ impl Sprite {
format!("\n{}", lines.join("\n"))
}
}
}
impl Sprite {
pub fn from_str(str: &str) -> Result<Sprite, crate::Error> {
let mut lines: Vec<&str> = str.lines().collect();