Skip to content

Commit

Permalink
Merge pull request #339 from TheNeikos/feature/fix_clippy_on_test
Browse files Browse the repository at this point in the history
Fix clippy warnings in tests
  • Loading branch information
TheNeikos authored Jan 8, 2025
2 parents ea9eb46 + 95c4584 commit 773f445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mqtt-format/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
#![deny(clippy::disallowed_methods)]
#![cfg_attr(not(test), deny(clippy::disallowed_methods))]
#![cfg_attr(test, allow(clippy::disallowed_methods))]
#![deny(clippy::disallowed_types)]

#[cfg(feature = "mqttv3")]
Expand Down
1 change: 1 addition & 0 deletions mqtt-format/src/v5/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub enum MqttWriteError {
Invariant,
}

#[cfg_attr(test, allow(clippy::len_without_is_empty))]
pub trait WriteMqttPacket: Send {
type Error: From<MqttWriteError>;

Expand Down

0 comments on commit 773f445

Please sign in to comment.