From 04dd8faeb6ab5e5d91cd2d882c1440b69f8144ed Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 10 May 2026 11:13:28 +0100 Subject: [PATCH] Adjust LitLinesCrlf input string literals for consistent indentation This will let us avoid trim, and instead trim a controlled amount. Signed-off-by: Ian Jackson --- client/client.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/client.rs b/client/client.rs index 28d39bc..04686eb 100644 --- a/client/client.rs +++ b/client/client.rs @@ -107,8 +107,8 @@ fn submit_request<'r, 'c:'r>( let req_num = { *req_num += 1; *req_num }; - let prefix1 = lines_crlf!(&LitLinesCrlf( - r#"--b + let prefix1 = lines_crlf!(&LitLinesCrlf(r#" + --b Content-Type: text/plain; charset="utf-8" Content-Disposition: form-data; name="m" "#), @@ -121,15 +121,15 @@ fn submit_request<'r, 'c:'r>( c.ic.max_batch_up, ); - let prefix2 = lines_crlf!(&LitLinesCrlf( - r#" + let prefix2 = lines_crlf!(&LitLinesCrlf(r#" + --b Content-Type: application/octet-stream Content-Disposition: form-data; name="d" "#), ); - let suffix = lines_crlf!(&LitLinesCrlf( - r#" + let suffix = lines_crlf!(&LitLinesCrlf(r#" + --b--"#), ); -- 2.30.2