From 3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 14:33:13 +0900 Subject: fix(compile): extract constants from traits to make them dyn-compatible --- crates/shirabe/src/util/git.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'crates/shirabe/src/util/git.rs') diff --git a/crates/shirabe/src/util/git.rs b/crates/shirabe/src/util/git.rs index 62d1e0e..8fe66a4 100644 --- a/crates/shirabe/src/util/git.rs +++ b/crates/shirabe/src/util/git.rs @@ -1,5 +1,6 @@ //! ref: composer/src/Composer/Util/Git.php +use crate::io::io_interface; use anyhow::Result; use indexmap::IndexMap; use std::sync::Mutex; @@ -75,7 +76,7 @@ impl Git { io.write_error( PhpMixed::String(format!("{}", msg)), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); } } @@ -540,7 +541,7 @@ impl Git { .to_string(), ), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); if run_commands_inline( &ssh_url, @@ -679,12 +680,12 @@ impl Git { m2 )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); self.io.write_error( PhpMixed::String(format!("{}", trim(&error_msg, None))), true, - IOInterface::VERBOSE, + io_interface::VERBOSE, ); let mut auth_map: IndexMap> = IndexMap::new(); auth_map.insert( @@ -792,7 +793,7 @@ impl Git { url )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); return Ok(false); @@ -857,7 +858,7 @@ impl Git { self.io.write_error( PhpMixed::String(format!("Sync mirror failed: {}", e)), true, - IOInterface::DEBUG, + io_interface::DEBUG, ); return Ok(false); @@ -1173,7 +1174,7 @@ impl Git { e )), true, - IOInterface::DEBUG, + io_interface::DEBUG, ); None } -- cgit v1.3.1