impl From<Error> for rlua::Error
This commit is contained in:
parent
357f2b6fdd
commit
c252048e2f
@ -9,6 +9,12 @@ impl From<rlua::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Error> for rlua::Error {
|
||||
fn from(error: Error) -> Self {
|
||||
rlua::Error::RuntimeError(format!("rlua-searcher error: {}", error))
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Error {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let res = match self {
|
||||
|
Loading…
Reference in New Issue
Block a user