diff --git a/src/timer.rs b/src/timer.rs index be393cd6045436f7955c5ef016a856ff4e720b8a..1d7abc216b7a1431371e97a5607c4f160f4bc07b 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -185,7 +185,7 @@ impl StateComponent for Timer { Ok(cursor.into_inner()) } - fn set_state(&mut self, data: &[u8]) -> Result<(), boytacean_common::error::Error> { + fn set_state(&mut self, data: &[u8]) -> Result<(), Error> { let mut cursor = Cursor::new(data); self.div = read_u8(&mut cursor)?; self.tima = read_u8(&mut cursor)?;