Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jan 27, 2025
1 parent 99e1e47 commit 33f40d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/core/src/http/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,13 @@ fn text_nonce() -> String {
Write::write_all(&mut cursor, &secs.to_le_bytes()).expect("write_all failed");

// Get the last bytes from random data
OsRng.try_fill_bytes(&mut raw[12..BYTE_LEN]).expect("OsRng.try_fill_bytes failed");
OsRng
.try_fill_bytes(&mut raw[12..BYTE_LEN])
.expect("OsRng.try_fill_bytes failed");
} else {
OsRng.try_fill_bytes(&mut raw[..]).expect("OsRng.try_fill_bytes failed");
OsRng
.try_fill_bytes(&mut raw[..])
.expect("OsRng.try_fill_bytes failed");
}

// base64 encode
Expand Down

0 comments on commit 33f40d4

Please sign in to comment.