From ddd35f822ff49acd35fed3e79c649f07d70b6475 Mon Sep 17 00:00:00 2001 From: Jack Gilcrest Date: Sat, 30 Nov 2024 20:53:58 +0700 Subject: [PATCH] fmt --- lib/src/headers/mod.nr | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/src/headers/mod.nr b/lib/src/headers/mod.nr index 753e99e..05e1b5e 100644 --- a/lib/src/headers/mod.nr +++ b/lib/src/headers/mod.nr @@ -3,7 +3,6 @@ use crate::{CR, LF, Sequence}; pub mod body_hash; pub mod email_address; - /** * Constrain a sequence in a header to be within the correct bounds * @@ -14,9 +13,8 @@ pub mod email_address; * @param header_field_sequence - The sequence of the header field * @param header_field_name - The name of the header field */ -fn check_header_field_bounds -( - header: BoundedVec, +fn check_header_field_bounds( + header: BoundedVec, header_field_sequence: Sequence, header_field_name: [u8; HEADER_FIELD_NAME_LENGTH], ) { @@ -71,7 +69,11 @@ pub fn constrain_header_field(header, header_field_sequence, header_field_name); + check_header_field_bounds::( + header, + header_field_sequence, + header_field_name, + ); // check the header field is uninterrupted let start_index = header_field_sequence.index + HEADER_FIELD_NAME_LENGTH + 1; @@ -93,7 +95,11 @@ pub fn constrain_header_field_detect_last_angle_bracket u32 { // constrain beginning of header field - check_header_field_bounds::(header, header_field_sequence, header_field_name); + check_header_field_bounds::( + header, + header_field_sequence, + header_field_name, + ); // check the header field is uninterrupted let mut last_angle_bracket = 0;