diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 14:33:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 14:38:16 +0900 |
| commit | 3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3 (patch) | |
| tree | 712ae7832124da20739f5b389cebe4f44abd7225 /crates/shirabe/src/downloader/download_manager.rs | |
| parent | ac59538140a93d9a023da2115148bc9779223978 (diff) | |
| download | php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.tar.gz php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.tar.zst php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.zip | |
fix(compile): extract constants from traits to make them dyn-compatible
Diffstat (limited to 'crates/shirabe/src/downloader/download_manager.rs')
| -rw-r--r-- | crates/shirabe/src/downloader/download_manager.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/shirabe/src/downloader/download_manager.rs b/crates/shirabe/src/downloader/download_manager.rs index 83ba219..c03f704 100644 --- a/crates/shirabe/src/downloader/download_manager.rs +++ b/crates/shirabe/src/downloader/download_manager.rs @@ -1,5 +1,6 @@ //! ref: composer/src/Composer/Downloader/DownloadManager.php +use crate::io::io_interface; use anyhow::Result; use indexmap::IndexMap; use shirabe_external_packages::composer::pcre::preg::Preg; @@ -222,7 +223,7 @@ impl DownloadManager { source, )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); } // TODO(phase-b): &mut on shared package — PHP mutates by reference @@ -257,7 +258,7 @@ impl DownloadManager { e, )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); retry_state = true; @@ -364,7 +365,7 @@ impl DownloadManager { self.io.write_error( PhpMixed::String(format!("<error> Update failed ({})</error>", e,)), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); if !self.io.ask_confirmation( " Would you like to try reinstalling the package instead [<comment>yes</comment>]? ".to_string(), |
