style: appease clippy

This commit is contained in:
Ashley Williams 2022-12-15 16:40:54 -06:00
parent ddc8bc12d0
commit e5f2b5c106
3 changed files with 4 additions and 9 deletions

View File

@ -1,5 +0,0 @@
blacklisted-names = []
cognitive-complexity-threshold = 100
single-char-binding-names-threshold = 15
# I HAVE THE POWER OF OLEG
type-complexity-threshold = 999999

View File

@ -222,7 +222,7 @@ impl OutputType for String {
pub fn escape_html_attribute(html_attr: String) -> String { pub fn escape_html_attribute(html_attr: String) -> String {
// Even though the code is quoting the variables with a double quote, escape all known quoting chars // Even though the code is quoting the variables with a double quote, escape all known quoting chars
html_attr html_attr
.replace("\"", """) .replace('\"', """)
.replace("'", "'") .replace('\'', "'")
.replace("`", "`") .replace('`', "`")
} }

View File

@ -77,7 +77,7 @@ impl<'a, A: 'a + Ord + Clone> FromIterator<&'a A> for SpacedSet<A> {
} }
} }
impl<'a, A: Ord + FromStr> FromStr for SpacedSet<A> impl<A: Ord + FromStr> FromStr for SpacedSet<A>
where where
<A as FromStr>::Err: Debug, <A as FromStr>::Err: Debug,
{ {