Refactoring
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
use vcore::opcodes::InvalidOpcode;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct ParseError<'a>(pub &'a str);
|
||||
|
||||
impl<'a> From<InvalidOpcode> for ParseError<'a> {
|
||||
fn from(_: InvalidOpcode) -> Self {
|
||||
Self("Invalid opcode")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user