diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-11 16:33:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-11 16:33:05 +0900 |
| commit | 27d00055df8691a6bd99aaf38633a7338b16cc6a (patch) | |
| tree | 4af17ccff5f8c2d09156fa62c559e60e3e683dac /crates/shirabe-php-shim/src/zip.rs | |
| parent | 1ec2220def43e37e5a65b96dde93c19b493258f4 (diff) | |
| download | php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.tar.gz php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.tar.zst php-shirabe-27d00055df8691a6bd99aaf38633a7338b16cc6a.zip | |
chore: use fully-qualified name for Rc/RefCell
Diffstat (limited to 'crates/shirabe-php-shim/src/zip.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/zip.rs | 7 |
1 files changed, 3 insertions, 4 deletions
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<ZipState>, + state: std::cell::RefCell<ZipState>, /// Test-only mock state. `None` in production; set via [`ZipArchive::__mock`] in tests. mock: Option<ZipArchiveMock>, } @@ -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), } } |
