diff options
Diffstat (limited to 'src/test/mod.rs')
-rw-r--r-- | src/test/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index ae19f6f5a..f02192ec0 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -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()) } } |