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/tests/installer/binary_installer_test.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/tests/installer/binary_installer_test.rs')
| -rw-r--r-- | crates/shirabe/tests/installer/binary_installer_test.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/shirabe/tests/installer/binary_installer_test.rs b/crates/shirabe/tests/installer/binary_installer_test.rs index 6b3cae5d..8b2d0636 100644 --- a/crates/shirabe/tests/installer/binary_installer_test.rs +++ b/crates/shirabe/tests/installer/binary_installer_test.rs @@ -7,9 +7,7 @@ use shirabe::io::IOInterface; use shirabe::io::null_io::NullIO; use shirabe::util::Filesystem; use shirabe::util::ProcessExecutor; -use std::cell::RefCell; use std::fs; -use std::rc::Rc; use tempfile::TempDir; /// Mirror of setUp(): builds temp root/vendor/bin dirs plus a mocked IO. PHP uses a @@ -18,7 +16,7 @@ struct SetUp { root: TempDir, vendor_dir: String, bin_dir: String, - io: Rc<RefCell<dyn IOInterface>>, + io: std::rc::Rc<std::cell::RefCell<dyn IOInterface>>, fs: Filesystem, } @@ -37,7 +35,8 @@ fn set_up() -> SetUp { let bin_dir = format!("{}/bin", root_dir); fs::create_dir_all(&bin_dir).unwrap(); - let io: Rc<RefCell<dyn IOInterface>> = Rc::new(RefCell::new(NullIO::new())); + let io: std::rc::Rc<std::cell::RefCell<dyn IOInterface>> = + std::rc::Rc::new(std::cell::RefCell::new(NullIO::new())); SetUp { root, @@ -94,7 +93,9 @@ fn run_install_and_exec_binary_with_full_compat(contents: &[u8]) { setup.io.clone(), setup.bin_dir.clone(), "full".to_string(), - Some(Rc::new(RefCell::new(Filesystem::new(None)))), + Some(std::rc::Rc::new(std::cell::RefCell::new(Filesystem::new( + None, + )))), None, ); installer.install_binaries(package, &pkg_dir, true); |
