Skip to content

Commit a888d0f

Browse files
committed
fix clippy
1 parent 7b048b1 commit a888d0f

File tree

1 file changed

+3
-0
lines changed
  • rust/catalyst-types/src/catalyst_id

1 file changed

+3
-0
lines changed

rust/catalyst-types/src/catalyst_id/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ impl CatalystId {
539539

540540
/// Comparisons of `CatalystId` based on original `PartialEq` plus including
541541
/// `username` and `nonce` fields.
542+
#[must_use]
542543
pub fn eq_with_userinfo(
543544
&self,
544545
other: &Self,
@@ -548,6 +549,7 @@ impl CatalystId {
548549

549550
/// Comparisons of `CatalystId` based on `CatalystId::eq_with_userinfo` plus including
550551
/// `role` and `rotation` fields.
552+
#[must_use]
551553
pub fn eq_with_role(
552554
&self,
553555
other: &Self,
@@ -854,6 +856,7 @@ mod tests {
854856
#[test_case(1, 2, true, false, false; "user vs user_nonce")]
855857
#[test_case(2, 3, true, false, false; "user_nonce vs nonce")]
856858
#[test_case(8, 8, true, true, true; "identical self comparison")]
859+
#[allow(clippy::indexing_slicing, clippy::similar_names)]
857860
fn test_all_comparisons(
858861
idx_a: usize,
859862
idx_b: usize,

0 commit comments

Comments
 (0)