wip
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
use crate::frontend::source_registry::{SourceRegistry, SourceSlice};
|
||||
use std::fmt;
|
||||
use crate::{
|
||||
common::base_value::BaseValue,
|
||||
frontend::source_registry::{SourceRegistry, SourceSlice},
|
||||
};
|
||||
use std::{error::Error, fmt};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum LoxError {
|
||||
@@ -397,7 +400,7 @@ impl fmt::Display for LoxError {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for LoxError {}
|
||||
impl Error for LoxError {}
|
||||
|
||||
pub type LoxResult<T> = Result<T, LoxError>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user