From 33f40d4cb7a0b37f945fad19d5a99fe556ccdfdb Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Tue, 28 Jan 2025 06:53:31 +0800 Subject: [PATCH] fmt --- crates/core/src/http/form.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/core/src/http/form.rs b/crates/core/src/http/form.rs index f00a0f1d7..2d4516573 100644 --- a/crates/core/src/http/form.rs +++ b/crates/core/src/http/form.rs @@ -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