aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/stream_context_factory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/stream_context_factory.rs')
-rw-r--r--crates/shirabe/src/util/stream_context_factory.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/stream_context_factory.rs b/crates/shirabe/src/util/stream_context_factory.rs
index bb1948e..48949c8 100644
--- a/crates/shirabe/src/util/stream_context_factory.rs
+++ b/crates/shirabe/src/util/stream_context_factory.rs
@@ -9,7 +9,8 @@ use shirabe_php_shim::{
php_uname, stream_context_create, stripos, uasort,
};
-use crate::composer::Composer;
+use crate::composer;
+use crate::composer::ComposerHandle;
use crate::downloader::TransportException;
use crate::repository::PlatformRepository;
use crate::util::Filesystem;
@@ -203,7 +204,7 @@ impl StreamContextFactory {
let platform_php_version = PlatformRepository::get_platform_php_version();
let user_agent = format!(
"User-Agent: Composer/{} ({os}; {release}; {php_version}; {http_version}{platform}{ci})",
- Composer::get_version(),
+ composer::get_version(),
os = if function_exists("php_uname") {
php_uname("s")
} else {