diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2025-05-14 20:37:16 +0100 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2025-05-14 20:37:16 +0100 |
| commit | 89900c002afb77366503330b513c2547b6cf1abd (patch) | |
| tree | 8ac51d78b1e91fea3cc3840706830c14bfc9dbc2 /examples/rust/echo-request/src/lib.rs | |
| parent | a7ca0088535ba2cfa898bacf54067517cda7ee7d (diff) | |
| download | unit-wasm-89900c002afb77366503330b513c2547b6cf1abd.tar.gz unit-wasm-89900c002afb77366503330b513c2547b6cf1abd.tar.bz2 | |
examples/rust: Remove some redundant unsafe blocks
... as noted by the compiler...
Fixes: 2cf492f ("examples/rust: Fix some new rustc warnings")
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'examples/rust/echo-request/src/lib.rs')
| -rw-r--r-- | examples/rust/echo-request/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rust/echo-request/src/lib.rs b/examples/rust/echo-request/src/lib.rs index 0fddab7..76a52b9 100644 --- a/examples/rust/echo-request/src/lib.rs +++ b/examples/rust/echo-request/src/lib.rs @@ -51,7 +51,7 @@ pub extern "C" fn uwr_request_handler(addr: *mut u8) -> i32 { uwr_init_ctx(ctx, addr, 4096); // Set where we will copy the request into - uwr_set_req_buf(ctx, unsafe { addr_of_mut!(REQUEST_BUF) }, LUW_SRB_NONE); + uwr_set_req_buf(ctx, addr_of_mut!(REQUEST_BUF), LUW_SRB_NONE); // Define the Response Body Text. |
