Use a Result
This commit is contained in:
parent
6435d5e958
commit
89482e5b5a
@ -50,13 +50,12 @@ impl ReplState {
|
||||
Float(f) => Some(format!("{}", f)),
|
||||
Str(s) => Some(format!("\"{}\"", s)),
|
||||
Bool(b) => Some(format!("{}", b)),
|
||||
_ => None,
|
||||
Other => None,
|
||||
}
|
||||
})
|
||||
},
|
||||
Statement::Declaration(decl) => {
|
||||
self.eval_decl(decl);
|
||||
Ok(None)
|
||||
self.eval_decl(decl).map(|_| None)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user