You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dns: Avoid allocating in Name::is_localhost (#1303)
`Name::is_localhost` implements comparison by parsing the string
`localhost.` as a Name. This requires constructing a `String` as well as
performing name parsing. We can avoid this work by obtaining a reference
to the inner name string and using [`str::eq_ignore_ascii_case`][1].
[1]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.eq_ignore_ascii_case
0 commit comments