Implement Display formatter in terms of Debug
This commit is contained in:
parent
a6fe4b9e08
commit
de4ab29da5
@ -72,13 +72,7 @@ impl std::fmt::Display for crate::VariableDeclaration
|
||||
{
|
||||
fn fmt(&self, format: &mut std::fmt::Formatter) -> std::fmt::Result
|
||||
{
|
||||
match &self.domain
|
||||
{
|
||||
crate::Domain::Program => write!(format, "X")?,
|
||||
crate::Domain::Integer => write!(format, "N")?,
|
||||
};
|
||||
|
||||
write!(format, "{}", &self.name)
|
||||
write!(format, "{:?}", &self)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user