From 550d1fca508f2624ade892fc9e9eb7f0cf45dd08 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 1 Sep 2024 23:12:21 +0100 Subject: [PATCH] Fix idna tests with no_std This failed since 464b1f7d8fe9de117af184c1acb52b4f821a0cdc: (cd idna && cargo test --all-targets --no-default-features --features alloc -- --ignored) --- idna/src/punycode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idna/src/punycode.rs b/idna/src/punycode.rs index b91782f5..4a421167 100644 --- a/idna/src/punycode.rs +++ b/idna/src/punycode.rs @@ -324,6 +324,6 @@ fn value_to_digit(value: u32) -> char { #[cfg(target_pointer_width = "64")] fn huge_encode() { let mut buf = String::new(); - assert!(encode_into(std::iter::repeat('ß').take(u32::MAX as usize + 1), &mut buf).is_err()); + assert!(encode_into(core::iter::repeat('ß').take(u32::MAX as usize + 1), &mut buf).is_err()); assert_eq!(buf.len(), 0); }