Add a Debug instance for OptVariable

This commit is contained in:
Richard Feldman 2020-01-02 02:07:43 -05:00
parent a547e51498
commit f28a1212c2

View file

@ -108,6 +108,11 @@ impl OptVariable {
Some(Variable(self.0))
}
}
impl fmt::Debug for OptVariable {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.clone().into_variable().fmt(f)
}
}
impl Into<Option<Variable>> for OptVariable {