From f2bff066c651589798fa248b5e3ca020e1bf8f64 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 17 Jan 2022 16:11:47 +0100 Subject: [PATCH] yes --- src/vm.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/vm.rs b/src/vm.rs index 427bfb4..739f639 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -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() - } -}