Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions src/new/base/charstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ impl Clone for alloc::boxed::Box<CharStr> {

//--- Equality

/// [Section 2.3.3 of RFC1035] (Character Case) states:
///
/// > For all parts of the DNS that are part of the official protocol, all
/// > comparisons between character strings (e.g., labels, domain names, etc.)
/// > are done in a case-insensitive manner.
///
/// [Section 2.3.3 of RFC1035]: https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.3
impl PartialEq for CharStr {
fn eq(&self, other: &Self) -> bool {
self.octets.eq_ignore_ascii_case(&other.octets)
Expand Down
Loading