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/tests/util/github_test.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'crates/shirabe/tests/util/github_test.rs') diff --git a/crates/shirabe/tests/util/github_test.rs b/crates/shirabe/tests/util/github_test.rs index b9abeb26..377a44fa 100644 --- a/crates/shirabe/tests/util/github_test.rs +++ b/crates/shirabe/tests/util/github_test.rs @@ -9,8 +9,6 @@ use shirabe::io::io_interface; use shirabe::util::GitHub; use shirabe::util::http_downloader::{HttpDownloader, HttpDownloaderMockHandler}; use shirabe_php_shim::PhpMixed; -use std::cell::RefCell; -use std::rc::Rc; const PASSWORD: &str = "password"; const MESSAGE: &str = "mymessage"; @@ -62,18 +60,18 @@ fn get_conf_json_mock(origin: &str) -> Box { } fn build_github( - io_mock: &Rc>, - config: Rc>, - http_downloader: Rc>, + io_mock: &std::rc::Rc>, + config: std::rc::Rc>, + http_downloader: std::rc::Rc>, ) -> GitHub { - let io: Rc> = io_mock.clone(); + let io: std::rc::Rc> = io_mock.clone(); GitHub::new(io, config, None, Some(http_downloader)).unwrap() } // The PHP Config mock returns null for `get('github-expose-hostname')`, which is // falsy and skips the `hostname` process call. A real Config defaults that key to // true, so the stub seeds false to reproduce the mock's behaviour. -fn build_config() -> Rc> { +fn build_config() -> std::rc::Rc> { ConfigStubBuilder::new() .with("github-expose-hostname", PhpMixed::Bool(false)) .build_shared() -- cgit v1.3.1