We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3103183 commit 7827992Copy full SHA for 7827992
src/timer.rs
@@ -131,7 +131,7 @@ impl Timer<SYST> {
131
132
impl CountDown for Timer<SYST> {
133
type Time = Hertz;
134
- type Error = nb::Error<Error>;
+ type Error = Error;
135
136
fn try_start<T>(&mut self, timeout: T) -> Result<(), Self::Error>
137
where
@@ -160,7 +160,7 @@ impl CountDown for Timer<SYST> {
160
impl Cancel for Timer<SYST> {
161
fn try_cancel(&mut self) -> Result<(), Self::Error> {
162
if !self.tim.is_counter_enabled() {
163
- return Err(nb::Error::Other(Error::Disabled));
+ return Err(Error::Disabled);
164
}
165
166
self.tim.disable_counter();
0 commit comments