From 3c5dc9d58171bad537b1afa2e9ffac3745733a49 Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Sun, 26 Jul 2026 20:53:39 +0900 Subject: [PATCH] relibc: fix missing String import in socket.rs IPv6 formatting Commit 79685cbe (AF_INET6 socket support) introduced String::with_capacity() at socket.rs:80 but only imported ToString from alloc::string, not String itself. This caused E0433 'cannot find type String in this scope' during canonical build (edition 2024 with -Z build-std). Fix: add String to the existing alloc::string import. --- src/platform/redox/socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/redox/socket.rs b/src/platform/redox/socket.rs index 3de32bb292..b1ac622661 100644 --- a/src/platform/redox/socket.rs +++ b/src/platform/redox/socket.rs @@ -1,4 +1,4 @@ -use alloc::{borrow::Cow, string::ToString, vec::Vec}; +use alloc::{borrow::Cow, string::{String, ToString}, vec::Vec}; use core::{cmp, fmt::Write, mem, ptr, slice, str}; use redox_path::RedoxStr; use redox_protocols::protocol::{FsCall, O_CLOEXEC, SocketCall};