From 02572bc4bccd2356bc69c56d0a696780cdab2aec Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Wed, 14 Jun 2023 18:56:10 +0200 Subject: [PATCH] Fix no_std for idna --- idna/src/uts46.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idna/src/uts46.rs b/idna/src/uts46.rs index fb39c1512..2ffb8414b 100644 --- a/idna/src/uts46.rs +++ b/idna/src/uts46.rs @@ -453,7 +453,7 @@ impl Idna { return Errors::default(); } let mut errors = processing(domain, self.config, &mut self.normalized, out); - self.output = std::mem::replace(out, String::with_capacity(out.len())); + self.output = core::mem::replace(out, String::with_capacity(out.len())); let mut first = true; for label in self.output.split('.') { if !first {