From: Ian Jackson Date: Sun, 10 May 2026 10:13:28 +0000 (+0100) Subject: Adjust LitLinesCrlf input string literals for consistent indentation X-Git-Tag: debian/1.3.3~5^2~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=04dd8faeb6ab5e5d91cd2d882c1440b69f8144ed;p=hippotat.git 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 --- 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--"#), );