diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-08-28 23:28:47 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-08-29 16:33:37 +0100 |
commit | 272bef7ffb6e014920c8de2f31fe7f9b6ab04879 (patch) | |
tree | 9238aba8001c5d8a429b7822c84294dadeb1e7d2 /src | |
parent | 31f124a96a2121726f626cafe814bb37accc966e (diff) | |
download | unit-wasm-272bef7ffb6e014920c8de2f31fe7f9b6ab04879.tar.gz unit-wasm-272bef7ffb6e014920c8de2f31fe7f9b6ab04879.tar.bz2 |
Rust/rusty: Run rusty.rs through rustfmt
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/rust/unit-wasm-sys/rusty.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rust/unit-wasm-sys/rusty.rs b/src/rust/unit-wasm-sys/rusty.rs index 3f07a56..3c96d02 100644 --- a/src/rust/unit-wasm-sys/rusty.rs +++ b/src/rust/unit-wasm-sys/rusty.rs @@ -124,7 +124,10 @@ pub fn uwr_http_hdr_iter( unsafe { luw_http_hdr_iter(ctx, luw_http_hdr_iter_func, user_data) } } -pub fn uwr_http_hdr_get_value(ctx: *const luw_ctx_t, hdr: &str) -> &'static str { +pub fn uwr_http_hdr_get_value( + ctx: *const luw_ctx_t, + hdr: &str, +) -> &'static str { C2S!(luw_http_hdr_get_value(ctx, S2C!(hdr).as_ptr() as *const i8)) } @@ -172,11 +175,7 @@ pub fn uwr_http_init_headers(ctx: *mut luw_ctx_t, nr: usize, offset: usize) { } } -pub fn uwr_http_add_header( - ctx: *mut luw_ctx_t, - name: &str, - value: &str, -) { +pub fn uwr_http_add_header(ctx: *mut luw_ctx_t, name: &str, value: &str) { unsafe { luw_http_add_header( ctx, |