From 27d00055df8691a6bd99aaf38633a7338b16cc6a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 11 Jul 2026 16:33:05 +0900 Subject: chore: use fully-qualified name for Rc/RefCell --- crates/shirabe-php-shim/src/zip.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crates/shirabe-php-shim/src/zip.rs') diff --git a/crates/shirabe-php-shim/src/zip.rs b/crates/shirabe-php-shim/src/zip.rs index 8bb51d1d..93b65fd5 100644 --- a/crates/shirabe-php-shim/src/zip.rs +++ b/crates/shirabe-php-shim/src/zip.rs @@ -2,7 +2,6 @@ use crate::ErrorException; use crate::PhpMixed; use crate::{StreamBacking, StreamState}; use indexmap::IndexMap; -use std::cell::RefCell; use zip::write::SimpleFileOptions; /// Test-only behaviour mirroring PHPUnit's `getMockBuilder('ZipArchive')->getMock()`, where @@ -36,7 +35,7 @@ enum ZipState { #[derive(Debug)] pub struct ZipArchive { pub num_files: i64, - state: RefCell, + state: std::cell::RefCell, /// Test-only mock state. `None` in production; set via [`ZipArchive::__mock`] in tests. mock: Option, } @@ -51,7 +50,7 @@ impl ZipArchive { pub fn new() -> Self { Self { num_files: 0, - state: RefCell::new(ZipState::Closed), + state: std::cell::RefCell::new(ZipState::Closed), mock: None, } } @@ -61,7 +60,7 @@ impl ZipArchive { pub fn __mock(mock: ZipArchiveMock) -> Self { Self { num_files: mock.count, - state: RefCell::new(ZipState::Closed), + state: std::cell::RefCell::new(ZipState::Closed), mock: Some(mock), } } -- cgit v1.3.1