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/auth_helper_test.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'crates/shirabe/tests/util/auth_helper_test.rs') diff --git a/crates/shirabe/tests/util/auth_helper_test.rs b/crates/shirabe/tests/util/auth_helper_test.rs index 905cbf7f..d719abf3 100644 --- a/crates/shirabe/tests/util/auth_helper_test.rs +++ b/crates/shirabe/tests/util/auth_helper_test.rs @@ -8,21 +8,19 @@ use shirabe::io::IOInterface; use shirabe::io::io_interface; use shirabe::util::{AuthHelper, Bitbucket, StoreAuth}; use shirabe_php_shim::{PhpMixed, base64_encode, json_encode}; -use std::cell::RefCell; -use std::rc::Rc; // Mirrors AuthHelperTest::setUp: a DEBUG-verbosity IOMock plus a real Config, both // shared with the AuthHelper under test. The IOMockGuard runs assert_complete on drop. struct Fixture { - io: Rc>, - config: Rc>, + io: std::rc::Rc>, + config: std::rc::Rc>, auth_helper: AuthHelper, _guard: crate::io_mock::IOMockGuard, } -fn set_up_with_config(config: Rc>) -> Fixture { +fn set_up_with_config(config: std::rc::Rc>) -> Fixture { let (mock, guard) = get_io_mock(io_interface::DEBUG).unwrap(); - let io: Rc> = mock.clone(); + let io: std::rc::Rc> = mock.clone(); let auth_helper = AuthHelper::new(io, config.clone()); Fixture { io: mock, @@ -38,7 +36,12 @@ fn set_up() -> Fixture { // Mirrors AuthHelperTest::expectsAuthentication: pre-seed the IO so hasAuthentication // and getAuthentication return the given credentials for `origin`. -fn expects_authentication(io: &Rc>, origin: &str, username: &str, password: &str) { +fn expects_authentication( + io: &std::rc::Rc>, + origin: &str, + username: &str, + password: &str, +) { use shirabe::io::IOInterfaceMutable; io.borrow_mut().set_authentication( origin.to_string(), -- cgit v1.3.1