From 2b51554ff59d1e5cbf8dd2db65d278b0202a9102 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 27 Jun 2026 03:52:05 +0900 Subject: refactor: fix compiler warnings and clippy warnings --- crates/shirabe-php-shim/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/shirabe-php-shim/src/lib.rs') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 8c8073f..cc868ff 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -480,8 +480,8 @@ impl StreamState { writable: bool, mode: String, uri: String, - ) -> PhpResource { - PhpResource::Stream(std::rc::Rc::new(std::cell::RefCell::new(StreamState { + ) -> StreamState { + StreamState { backing, readable, writable, @@ -489,6 +489,6 @@ impl StreamState { closed: false, mode, uri, - }))) + } } } -- cgit v1.3.1