File tree 3 files changed +5
-9
lines changed
3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 5
5
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg" ,
6
6
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg"
7
7
) ]
8
- #![ warn( clippy:: pedantic) ] // Be pedantic by default
9
- #![ warn( clippy:: integer_division_remainder_used) ] // Be judicious about using `/` and `%`
10
8
#![ allow( non_snake_case) ] // Allow notation matching the spec
11
9
#![ allow( clippy:: clone_on_copy) ] // Be explicit about moving data
12
10
#![ deny( missing_docs) ] // Require all public interfaces to be documented
11
+ #![ warn( clippy:: pedantic) ] // Be pedantic by default
12
+ #![ warn( clippy:: integer_division_remainder_used) ] // Be judicious about using `/` and `%`
13
13
14
14
//! # Usage
15
15
//!
Original file line number Diff line number Diff line change @@ -18,13 +18,6 @@ exclude = ["src/test-vectors.json"]
18
18
getrandom = [" rand_core/getrandom" ]
19
19
zeroize = [" dep:zeroize" , " ml-kem/zeroize" , " x25519-dalek/zeroize" ]
20
20
21
- [lints .clippy ]
22
- pedantic = " warn" # Be pedantic by default
23
- similar_names = { level = " allow" , priority = 1 } # So we can use the names as in the RFC
24
-
25
- [lints .rust ]
26
- missing_docs = " deny" # Require all public interfaces to be documented
27
-
28
21
[dependencies ]
29
22
rand_core = { version = " 0.6" , default-features = false }
30
23
x25519-dalek = { version = " 2.0" , default-features = false , features = [" static_secrets" ] }
Original file line number Diff line number Diff line change 5
5
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg" ,
6
6
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg"
7
7
) ]
8
+ #![ deny( missing_docs) ]
9
+ #![ warn( clippy:: pedantic) ]
8
10
9
11
//! # Usage
10
12
//!
@@ -133,6 +135,7 @@ pub struct DecapsulationKey {
133
135
impl Decapsulate < Ciphertext , SharedSecret > for DecapsulationKey {
134
136
type Error = Infallible ;
135
137
138
+ #[ allow( clippy:: similar_names) ] // So we can use the names as in the RFC
136
139
fn decapsulate ( & self , ct : & Ciphertext ) -> Result < SharedSecret , Self :: Error > {
137
140
let ( sk_m, sk_x, _pk_m, pk_x) = self . expand_key ( ) ;
138
141
let ss_m = sk_m. decapsulate ( & ct. ct_m ) ?;
You can’t perform that action at this time.
0 commit comments