Skip to content

Commit 22b8237

Browse files
authored
Fix idna tests with no_std (#963)
This failed since 464b1f7: (cd idna && cargo test --all-targets --no-default-features --features alloc -- --ignored)
1 parent c04aca3 commit 22b8237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idna/src/punycode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,6 @@ fn value_to_digit(value: u32) -> char {
324324
#[cfg(target_pointer_width = "64")]
325325
fn huge_encode() {
326326
let mut buf = String::new();
327-
assert!(encode_into(std::iter::repeat('ß').take(u32::MAX as usize + 1), &mut buf).is_err());
327+
assert!(encode_into(core::iter::repeat('ß').take(u32::MAX as usize + 1), &mut buf).is_err());
328328
assert_eq!(buf.len(), 0);
329329
}

0 commit comments

Comments
 (0)