mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 09:25:02 +01:00
yes
This commit is contained in:
parent
64f3ffd2a8
commit
f2bff066c6
1 changed files with 0 additions and 11 deletions
11
src/vm.rs
11
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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue