Skip to content

Commit bb5122d

Browse files
committed
Burn incense before clippy
1 parent 04098f8 commit bb5122d

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

schnorr_fun/src/frost/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ impl<H: Hash32, NG: NonceGen> Frost<H, NG> {
208208
///
209209
/// Parameters:
210210
///
211-
/// - `frost_key`: the joint public key we are signing under. This can be an `EvenY` or `Normal`
212-
/// It will return the same nonce regardless.
211+
/// - `frost_key`: the joint public key we are signing under. This can be an `EvenY` or `Normal` It will return the same nonce regardless.
213212
/// - `secret`: you're secret key share for the `frost_key`
214213
/// - `session_id`: a string of bytes that is **unique for each signing attempt**.
215214
///

schnorr_fun/src/musig.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,10 @@ where
338338
///
339339
/// Parameters:
340340
///
341-
/// - `agg_key`: the joint public key we are signing under. This can be an `XOnly` or `Normal`.
342-
/// It will return the same nonce regardless.
341+
/// - `agg_key`: the joint public key we are signing under. This can be an `XOnly` or `Normal`. It will return the same nonce regardless.
343342
/// - `secret`: you're secret key as part of `agg_key`. This **must be the secret key you are
344-
/// going to sign with**. It cannot be an "untweaked" version of the signing key. It must be
345-
/// exactly equal to the secret key you pass to [`sign`] (the MuSig specification requires this).
343+
/// going to sign with**. It cannot be an "untweaked" version of the signing key. It must be
344+
/// exactly equal to the secret key you pass to [`sign`] (the MuSig specification requires this).
346345
/// - `session_id`: a string of bytes that is **unique for each signing attempt**.
347346
///
348347
/// The application should decide upon a unique `session_id` per call to this function. If the

secp256kfun/src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ macro_rules! s {
3030
/// - `<point> + <point>` adds two points
3131
/// - `<point> - <point>` subtracts one point from another
3232
/// - `<scalar_iter> .* <point_iter>` does a [dot product](https://en.wikipedia.org/wiki/Dot_product)
33-
/// between a list of points and scalars. If one list is shorter than the other then the excess
34-
/// points or scalars will be multiplied by 0. See [`op::point_scalar_dot_product`].
33+
/// between a list of points and scalars. If one list is shorter than the other then the excess
34+
/// points or scalars will be multiplied by 0. See [`op::point_scalar_dot_product`].
3535
///
3636
/// The terms of the expression can be any variable followed by simple method calls, attribute
3737
/// access etc. If your term involves more expressions (anything involving specifying types using

secp256kfun/src/marker/secrecy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
///
66
/// - [`Secret`]: This value must be kept secret from parties I interact with.
77
/// - [`Public`]: This value is known or it would not harm my security if this
8-
/// value is known to all parties I interact with.
8+
/// value is known to all parties I interact with.
99
///
1010
/// Note this consideration is only important if you do operations on the value
1111
/// during an interaction with a party. So if you would like to keep scalar `x`

secp256kfun/src/point.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ impl<TR: PointType, SL, SR, ZR> SubAssign<Point<TR, SR, ZR>> for Point<NonNormal
590590

591591
impl<S: Secrecy> core::iter::Sum for Point<NonNormal, S, Zero> {
592592
fn sum<I: Iterator<Item = Self>>(mut iter: I) -> Self {
593-
let mut sum = iter.next().unwrap_or(Point::zero());
593+
let mut sum = iter.next().unwrap_or_default();
594594
for point in iter {
595595
sum += point;
596596
}

0 commit comments

Comments
 (0)