style: appease clippy
This commit is contained in:
parent
ddc8bc12d0
commit
e5f2b5c106
|
@ -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
|
|
|
@ -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('`', "`")
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue