handle errors for game
This commit is contained in:
@@ -41,7 +41,7 @@ pub struct Game {
|
||||
}
|
||||
|
||||
impl Game {
|
||||
fn from(string: String) -> Result<Game, &'static dyn Error> {
|
||||
pub fn from(string: String) -> Result<Game, &'static dyn Error> {
|
||||
let mut string = format!("{}\n\n", string.trim_matches('\n'));
|
||||
|
||||
if string.starts_with("# BITSY VERSION") {
|
||||
|
||||
Reference in New Issue
Block a user