remove types from console.log and formatted strings

This commit is contained in:
collin 2020-09-07 23:40:15 -07:00
parent eff7d9d599
commit 8a3f59e9c0
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ impl fmt::Display for Integer {
let integer = self;
let option = match_integer!(integer => integer.get_value());
match option {
Some(number) => write!(f, "{}{}", number, self.get_type()),
Some(number) => write!(f, "{}", number),
None => write!(f, "[input]{}", self.get_type()),
}
}

View File

@ -334,9 +334,9 @@ impl<F: Field + PrimeField, G: GroupType<F>> fmt::Display for ConstrainedValue<F
write!(f, "function {{ {}() }}", function.identifier)
}
ConstrainedValue::Import(_, ref value) => write!(f, "{}", value),
ConstrainedValue::Mutable(ref value) => write!(f, "mut {}", value),
ConstrainedValue::Static(ref value) => write!(f, "static {}", value),
ConstrainedValue::Unresolved(ref value) => write!(f, "unresolved {}", value),
ConstrainedValue::Mutable(ref value) => write!(f, "{}", value),
ConstrainedValue::Static(ref value) => write!(f, "{}", value),
ConstrainedValue::Unresolved(ref value) => write!(f, "{}", value),
}
}
}