Skip to content

Commit c68a322

Browse files
committed
avoid unnecessary unsafe
1 parent a224054 commit c68a322

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ohkami/src/testing/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl TestingOhkami {
5757

5858
let test_res = async move {
5959
let mut req = Request::uninit(#[cfg(feature="__rt_native__")] crate::util::IP_0000);
60-
let mut req = unsafe {Pin::new_unchecked(&mut req)};
60+
let mut req = Pin::new(&mut req);
6161

6262
let res = match req.as_mut().read(&mut &test_req.encode()[..]).await {
6363
Err(res) => res,

0 commit comments

Comments
 (0)