Skip to content

Commit a9ff7b6

Browse files
committed
Update to Rust 1.68.0 and fix Clippy warnings
1 parent fce048f commit a9ff7b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/pq/protocol.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,14 @@ pub fn round_2(server: &mut Server, config: &Config, id: u32) -> M2Message {
9292
let to_sign: Vec<u8> = [
9393
cis.clone()
9494
.iter()
95-
.map(|x| {
95+
.flat_map(|x| {
9696
[
9797
x.0.to_owned().into_vec(),
9898
x.1.to_owned().to_vec(),
9999
x.2.to_vec(),
100100
]
101101
.concat()
102102
})
103-
.into_iter()
104-
.flatten()
105103
.collect(),
106104
r.clone(),
107105
pk.clone().into_vec(),
@@ -127,16 +125,14 @@ pub fn round_3(client: &mut Client, config: &Config, verbose: bool) -> (Vec<u8>,
127125

128126
let to_verify: Vec<u8> = [
129127
cis.iter()
130-
.map(|x| {
128+
.flat_map(|x| {
131129
[
132130
x.0.to_owned().into_vec(),
133131
x.1.to_owned().to_vec(),
134132
x.2.to_vec(),
135133
]
136134
.concat()
137135
})
138-
.into_iter()
139-
.flatten()
140136
.collect(),
141137
r,
142138
pk.into_vec(),

0 commit comments

Comments
 (0)