[tim] Cleanup on timer aisle

This commit is contained in:
2024-03-05 09:33:53 +05:30
parent 3aa51389a3
commit ce7c224470
3 changed files with 44 additions and 35 deletions

View File

@@ -4,6 +4,7 @@ use sdl2::video::WindowBuildError;
pub type EmulatorResult<T> = Result<T, EmulatorError>;
#[derive(Clone, Debug)]
pub enum EmulatorError {
SdlError(String),
@@ -41,4 +42,4 @@ impl<T> From<PoisonError<T>> for EmulatorError{
fn from(value: PoisonError<T>) -> Self {
Self::MutexInvalidState(value.to_string())
}
}
}