avoid warnings saying smartmatch is experimental

You could probably rewrite that one statement without using smartmatch instead. Up to you