Skip to content

Commit 74eaebe

Browse files
authored
Fix Clippy (#96)
1 parent c8de516 commit 74eaebe

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
uses: actions-rs/cargo@v1
125125
with:
126126
command: clippy
127-
args: --all-targets -- -D warnings
127+
args: --all-features --all-targets -- -D warnings
128128

129129
- name: Run cargo doc
130130
uses: actions-rs/cargo@v1

src/common.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,12 @@ where
388388
Err(Error::Protocol)
389389
}
390390

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.
392397
#[cfg(feature = "danger")]
393398
pub fn derive_key<CS: CipherSuite>(
394399
seed: &[u8],

src/tests/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fn parse_params(input: &str) -> String {
9696
let key = iter.next().unwrap().split_whitespace().next().unwrap();
9797
let val = iter.next().unwrap().split_whitespace().next().unwrap();
9898

99-
param = format!(" \"{}\": \"{}", key, val);
99+
param = format!(" \"{key}\": \"{val}");
100100
} else {
101101
let s = line.trim().to_string();
102102
if s.contains('~') || s.contains('#') {

0 commit comments

Comments
 (0)