blob: 54d8f20973487a7456b3288e10000b68ae4d7055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Index: idna/src/uts46.rs
===================================================================
--- idna.orig/src/uts46.rs
+++ 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 {
|