style: Latest clippy suggestions (#2048)

Have fixed a few new suggestions from the latest version of clippy.
This commit is contained in:
Thomas O'Donnell
2021-01-01 19:45:04 +01:00
committed by GitHub
parent 6de4bb01f4
commit 1ba862b26f
3 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ impl<'a> ModuleRenderer<'a> {
// convention was that there would be no module but None. This is nowadays not anymore
// the case (to get durations for all modules). So here we make it so, that an empty
// module returns None in the tests...
ret.filter(|s| s != "")
ret.filter(|s| !s.is_empty())
}
}