Skip to content

Commit 021420b

Browse files
committed
dwt: don't inline Comparator::configure
The function is a bit too large to warrant inlining.
1 parent 35bb481 commit 021420b

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
@@ -360,8 +360,8 @@ pub enum DWTError {
360360

361361
impl Comparator {
362362
/// Configure the function of the comparator
363-
#[inline]
364-
pub fn configure(&self, settings: ComparatorFunction) -> Result<(), DWTError> {
363+
#[allow(clippy::missing_inline_in_public_items)]
364+
pub fn configure(&self, settings: ComparatorFunction) -> Result<(), DwtError> {
365365
match settings {
366366
ComparatorFunction::Address(settings) => unsafe {
367367
if settings.emit == EmitOption::PC && settings.access_type != AccessType::ReadWrite

0 commit comments

Comments
 (0)