Skip to content

Commit d6a2ec4

Browse files
style: fix two clippy warnings when non-standard-zstd is disabled
1 parent d1f7e7f commit d6a2ec4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

watermelon-mini/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub struct ConnectFlags {
3131
pub zstd_compression_level: Option<u8>,
3232
}
3333

34+
#[cfg_attr(not(feature = "non-standard-zstd"), expect(clippy::derivable_impls))]
3435
impl Default for ConnectFlags {
3536
fn default() -> Self {
3637
Self {

watermelon/src/client/quick_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub(crate) struct RawQuickInfo(AtomicU32);
1515
///
1616
/// [`Client::quick_info`]: crate::core::Client::quick_info
1717
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
18-
#[expect(clippy::struct_excessive_bools)]
18+
#[cfg_attr(feature = "non-standard-zstd", expect(clippy::struct_excessive_bools))]
1919
pub struct QuickInfo {
2020
pub(crate) is_connected: bool,
2121
#[cfg(feature = "non-standard-zstd")]

0 commit comments

Comments
 (0)