[cln] Code cleanup

This commit is contained in:
2024-03-06 08:18:07 +05:30
parent ed7c6d3e1c
commit abad89d4d0
8 changed files with 15 additions and 22 deletions

View File

@@ -10,7 +10,6 @@ pub type EmulatorResult<T> = Result<T, EmulatorError>;
#[derive(Clone, Debug)]
pub enum EmulatorError {
SdlError(String),
AllocationError,
IOError(String),
MutexInvalidState(String)
}
@@ -48,6 +47,6 @@ impl<T> From<PoisonError<T>> for EmulatorError{
impl From<SendError<KeyboardEvent>> for EmulatorError{
fn from(value: SendError<KeyboardEvent>) -> Self {
Self::IOError(format!("Failed to communicate keyboard stats to main thread: {}",value))
Self::IOError(format!("Failed to communicate keyboard event to main thread: {}",value))
}
}