Skip to content

Commit 633a631

Browse files
committed
dwt: DWTError -> DwtError for in-crate consistency
1 parent d45bad7 commit 633a631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/peripheral/dwt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ pub enum ComparatorFunction {
353353

354354
/// Possible error values returned on [Comparator::configure].
355355
#[derive(Debug)]
356-
pub enum DWTError {
356+
pub enum DwtError {
357357
/// Invalid combination of [AccessType] and [EmitOption].
358358
InvalidFunction,
359359
}
@@ -383,7 +383,7 @@ impl Comparator {
383383
(AccessType::ReadWrite, EmitOption::PCData) => (0b0011, false),
384384

385385
(AccessType::ReadWrite, EmitOption::PC) => (0b0001, false),
386-
(_, EmitOption::PC) => return Err(DWTError::InvalidFunction),
386+
(_, EmitOption::PC) => return Err(DwtError::InvalidFunction),
387387
};
388388

389389
self.function.modify(|mut r| {

0 commit comments

Comments
 (0)