[types] Revert to a more Rusty way to print objects for Debug
This commit is contained in:
parent
37455641ec
commit
cd7ea8f543
1 changed files with 1 additions and 6 deletions
|
|
@ -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>),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue