chore: clean up warnings in starmelon
This commit is contained in:
parent
376a14480b
commit
f8191db391
6 changed files with 31 additions and 70 deletions
|
|
@ -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 {
|
|||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue