This commit is contained in:
nora 2022-01-17 16:11:47 +01:00
parent 64f3ffd2a8
commit f2bff066c6

View file

@ -4,7 +4,6 @@ use crate::util;
use crate::Config;
use std::fmt::{Debug, Display, Formatter};
use std::io::{Read, Write};
use std::ptr::NonNull;
type VmError = Box<&'static str>;
type VmResult = Result<(), VmError>;
@ -54,9 +53,6 @@ pub enum Value {
util::assert_size!(Value == 24);
#[derive(Debug, Clone, Copy)]
pub struct Ptr(NonNull<()>);
const TRUE: Value = Value::Bool(true);
const FALSE: Value = Value::Bool(false);
@ -280,10 +276,3 @@ impl Display for Value {
}
}
}
#[cfg(feature = "_debug")]
impl debug2::Debug for Ptr {
fn fmt(&self, f: &mut debug2::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Ptr").finish()
}
}