Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDNA: Errors - Allow people to get specific error in basic values #794

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions idna/src/uts46.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,18 +598,18 @@ fn is_bidi_domain(s: &str) -> bool {
/// More details may be exposed in the future.
#[derive(Default)]
pub struct Errors {
punycode: bool,
check_hyphens: bool,
check_bidi: bool,
start_combining_mark: bool,
invalid_mapping: bool,
nfc: bool,
disallowed_by_std3_ascii_rules: bool,
disallowed_mapped_in_std3: bool,
disallowed_character: bool,
too_long_for_dns: bool,
too_short_for_dns: bool,
disallowed_in_idna_2008: bool,
pub punycode: bool,
pub check_hyphens: bool,
pub check_bidi: bool,
pub start_combining_mark: bool,
pub invalid_mapping: bool,
pub nfc: bool,
pub disallowed_by_std3_ascii_rules: bool,
pub disallowed_mapped_in_std3: bool,
pub disallowed_character: bool,
pub too_long_for_dns: bool,
pub too_short_for_dns: bool,
pub disallowed_in_idna_2008: bool,
}

impl Errors {
Expand Down