mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Add a Debug instance for OptVariable
This commit is contained in:
parent
a547e51498
commit
f28a1212c2
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue