diff options
author | 2021-11-21 01:24:16 +0100 | |
---|---|---|
committer | 2021-11-21 01:35:20 +0100 | |
commit | 633a631af6906421c087f1961c3880a93f69fd91 (patch) | |
tree | 516c1309af0a3476e9a276f8c0b815c9858c6b40 | |
parent | d45bad7f6d2abdf7f1ea27868791987e87bd2876 (diff) | |
download | cortex-m-633a631af6906421c087f1961c3880a93f69fd91.tar.gz cortex-m-633a631af6906421c087f1961c3880a93f69fd91.tar.zst cortex-m-633a631af6906421c087f1961c3880a93f69fd91.zip |
dwt: DWTError -> DwtError for in-crate consistency
-rw-r--r-- | src/peripheral/dwt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peripheral/dwt.rs b/src/peripheral/dwt.rs index 0b0d774..bf770d2 100644 --- a/src/peripheral/dwt.rs +++ b/src/peripheral/dwt.rs @@ -353,7 +353,7 @@ pub enum ComparatorFunction { /// Possible error values returned on [Comparator::configure]. #[derive(Debug)] -pub enum DWTError { +pub enum DwtError { /// Invalid combination of [AccessType] and [EmitOption]. InvalidFunction, } @@ -383,7 +383,7 @@ impl Comparator { (AccessType::ReadWrite, EmitOption::PCData) => (0b0011, false), (AccessType::ReadWrite, EmitOption::PC) => (0b0001, false), - (_, EmitOption::PC) => return Err(DWTError::InvalidFunction), + (_, EmitOption::PC) => return Err(DwtError::InvalidFunction), }; self.function.modify(|mut r| { |