roblox_emulator: implement Error trait for ServicesError
This commit is contained in:
parent
6a88003b09
commit
fca9e1c325
@ -5,6 +5,12 @@ use rbx_dom_weak::{types::Ref,InstanceBuilder,WeakDom};
|
||||
pub enum ServicesError{
|
||||
WorkspaceNotFound,
|
||||
}
|
||||
impl std::fmt::Display for ServicesError{
|
||||
fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{
|
||||
write!(f,"{self:?}")
|
||||
}
|
||||
}
|
||||
impl std::error::Error for ServicesError{}
|
||||
|
||||
pub struct Services{
|
||||
pub(crate) game:Ref,
|
||||
|
Loading…
x
Reference in New Issue
Block a user