[types] Revert to a more Rusty way to print objects for Debug

This commit is contained in:
Eryn Wells 2018-08-25 08:00:39 -07:00
parent 37455641ec
commit cd7ea8f543

View file

@ -18,6 +18,7 @@ use std::any::Any;
use std::fmt; use std::fmt;
use super::*; use super::*;
#[derive(Debug)]
pub enum Obj { pub enum Obj {
Null, Null,
Ptr(Box<Object>) Ptr(Box<Object>)
@ -58,12 +59,6 @@ impl fmt::Display for Obj {
} }
} }
impl fmt::Debug for Obj {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self)
}
}
//#[derive(Debug, PartialEq)] //#[derive(Debug, PartialEq)]
//pub enum Object { //pub enum Object {
// ByteVector(Vec<u8>), // ByteVector(Vec<u8>),