Skip to content

Commit edabc79

Browse files
Fix no_std for idna (#843)
Co-authored-by: Luca Casonato <[email protected]>
1 parent 1158370 commit edabc79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idna/src/uts46.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ impl Idna {
453453
return Errors::default();
454454
}
455455
let mut errors = processing(domain, self.config, &mut self.normalized, out);
456-
self.output = std::mem::replace(out, String::with_capacity(out.len()));
456+
self.output = core::mem::replace(out, String::with_capacity(out.len()));
457457
let mut first = true;
458458
for label in self.output.split('.') {
459459
if !first {

0 commit comments

Comments
 (0)