Skip to content

Commit c1af67a

Browse files
committed
fix formatting for nightly
1 parent a75e00c commit c1af67a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

crates/components/hmac-sha256/src/sha256.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ impl Sha256 {
8181
};
8282

8383
// Sha256 compression function takes 64 byte blocks as inputs but our blocks in
84-
// `self.chunks` can have arbitrary size to simplify the api. So we need to repartition
85-
// them to 64 byte blocks and feed those into the compression function.
84+
// `self.chunks` can have arbitrary size to simplify the api. So we need to
85+
// repartition them to 64 byte blocks and feed those into the
86+
// compression function.
8687
let mut remainder = None;
8788
let mut block: Vec<Vector<U8>> = vec![];
8889
let mut chunk_iter = self.chunks.iter().copied();
@@ -240,8 +241,8 @@ mod tests {
240241
let input = &inputs[2];
241242
let reference = references[2];
242243

243-
// This has to be 64 bytes, because the sha256 compression function operates on 64 byte
244-
// blocks.
244+
// This has to be 64 bytes, because the sha256 compression function operates on
245+
// 64 byte blocks.
245246
let skip = 64;
246247

247248
let state = compress_256(Sha256::IV, &input[..skip]);
@@ -318,8 +319,8 @@ mod tests {
318319
let input = &inputs[2];
319320
let reference = references[2];
320321

321-
// This has to be 64 bytes, because the sha256 compression function operates on 64 byte
322-
// blocks.
322+
// This has to be 64 bytes, because the sha256 compression function operates on
323+
// 64 byte blocks.
323324
let skip = 64;
324325

325326
let state = compress_256(Sha256::IV, &input[..skip]);

0 commit comments

Comments
 (0)