Skip to content

Commit

Permalink
Fix idna tests with no_std (#963)
Browse files Browse the repository at this point in the history
This failed since 464b1f7:

  (cd idna && cargo test --all-targets --no-default-features --features alloc -- --ignored)
  • Loading branch information
cjwatson authored Sep 16, 2024
1 parent c04aca3 commit 22b8237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idna/src/punycode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 22b8237

Please sign in to comment.