diff options
author | 2021-11-21 01:16:39 +0100 | |
---|---|---|
committer | 2021-11-21 01:34:30 +0100 | |
commit | 021420b11fa7f51b5daae46fbfbcd19a370bc75d (patch) | |
tree | f6a7875b72375fe20049f6d970b928520c6c80b9 /src | |
parent | 35bb481f462a4ed113bf9d562343da4922425de0 (diff) | |
download | cortex-m-021420b11fa7f51b5daae46fbfbcd19a370bc75d.tar.gz cortex-m-021420b11fa7f51b5daae46fbfbcd19a370bc75d.tar.zst cortex-m-021420b11fa7f51b5daae46fbfbcd19a370bc75d.zip |
dwt: don't inline Comparator::configure
The function is a bit too large to warrant inlining.
Diffstat (limited to 'src')
-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 597accd..8bb063f 100644 --- a/src/peripheral/dwt.rs +++ b/src/peripheral/dwt.rs @@ -360,8 +360,8 @@ pub enum DWTError { impl Comparator { /// Configure the function of the comparator - #[inline] - pub fn configure(&self, settings: ComparatorFunction) -> Result<(), DWTError> { + #[allow(clippy::missing_inline_in_public_items)] + pub fn configure(&self, settings: ComparatorFunction) -> Result<(), DwtError> { match settings { ComparatorFunction::Address(settings) => unsafe { if settings.emit == EmitOption::PC && settings.access_type != AccessType::ReadWrite |