File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ jobs:
124
124
uses : actions-rs/cargo@v1
125
125
with :
126
126
command : clippy
127
- args : --all-targets -- -D warnings
127
+ args : --all-features --all- targets -- -D warnings
128
128
129
129
- name : Run cargo doc
130
130
uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change @@ -388,7 +388,12 @@ where
388
388
Err ( Error :: Protocol )
389
389
}
390
390
391
- /// Can only fail with [`Error::DeriveKeyPair`] and [`Error::Protocol`].
391
+ /// Corresponds to DeriveKeyPair() function from the VOPRF specification.
392
+ ///
393
+ /// # Errors
394
+ /// - [`Error::DeriveKeyPair`] if the `input` and `seed` together are longer
395
+ /// then `u16::MAX - 3`.
396
+ /// - [`Error::Protocol`] if the protocol fails and can't be completed.
392
397
#[ cfg( feature = "danger" ) ]
393
398
pub fn derive_key < CS : CipherSuite > (
394
399
seed : & [ u8 ] ,
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ fn parse_params(input: &str) -> String {
96
96
let key = iter. next ( ) . unwrap ( ) . split_whitespace ( ) . next ( ) . unwrap ( ) ;
97
97
let val = iter. next ( ) . unwrap ( ) . split_whitespace ( ) . next ( ) . unwrap ( ) ;
98
98
99
- param = format ! ( " \" {}\" : \" {}" , key , val ) ;
99
+ param = format ! ( " \" {key }\" : \" {val}" ) ;
100
100
} else {
101
101
let s = line. trim ( ) . to_string ( ) ;
102
102
if s. contains ( '~' ) || s. contains ( '#' ) {
You can’t perform that action at this time.
0 commit comments