chore: clean up warnings in starmelon

This commit is contained in:
YetAnotherMinion 2022-04-03 00:15:07 +01:00 committed by nobody
commit f8191db391
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
6 changed files with 31 additions and 70 deletions

View file

@ -135,16 +135,25 @@ fn is_css_in_elm_stylesheet(tipe: &elmi::Type) -> bool {
elmi::Type::TTuple(a, b, None) => {
match &**a {
elmi::Type::TType(module_name, name, _)
if module_name == "elm/core/String" && name == "String" => (),
if module_name == "elm/core/String" && name == "String" =>
{
()
}
_ => return false,
}
match &**b {
elmi::Type::TType(module_name, name, args)
if module_name == "elm/core/List" && name == "List" && args.len() == 1 =>
if module_name == "elm/core/List"
&& name == "List"
&& args.len() == 1 =>
{
match &args[0] {
elmi::Type::TAlias(module_name, name, _, _)
if module_name == "ThinkAlexandria/css-in-elm/Css" && name == "Stylesheet" => return true,
if module_name == "ThinkAlexandria/css-in-elm/Css"
&& name == "Stylesheet" =>
{
return true
}
_ => (),
}
}
@ -154,7 +163,6 @@ fn is_css_in_elm_stylesheet(tipe: &elmi::Type) -> bool {
_ => (),
}
}
}
_ => (),
}