restrict clippy::string_slice
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
51df946911
commit
59d86d3641
5 changed files with 7 additions and 2 deletions
|
@ -127,6 +127,7 @@ impl WildCardedDomain {
|
|||
impl std::str::FromStr for WildCardedDomain {
|
||||
type Err = std::convert::Infallible;
|
||||
|
||||
#[allow(clippy::string_slice)]
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
// maybe do some domain validation?
|
||||
Ok(if s.starts_with("*.") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue