From 2c76113b8183e86b3b9167c5b1a3f7d32fbe1a0d Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Tue, 3 Nov 2020 16:28:19 +0100 Subject: [PATCH] fixup: linting --- phase2/src/small.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phase2/src/small.rs b/phase2/src/small.rs index 760feda0b2..4ea40c5ba0 100644 --- a/phase2/src/small.rs +++ b/phase2/src/small.rs @@ -618,7 +618,7 @@ pub fn verify_contribution_small(before: &MPCSmall, after: &MPCSmall) -> Result< return Err(()); } - let before_is_initial = before.contributions.len() == 0; + let before_is_initial = before.contributions.is_empty(); let after_pubkey = after.contributions.last().unwrap(); // Check that the before params' `delta_g1` and `delta_after` are the same value.