From 22b823708a59a50ea2505c3fcdb5c4b26ab9b080 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 16 Sep 2024 08:31:42 +0100 Subject: [PATCH] Fix idna tests with no_std (#963) 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); }