diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2021-01-01 19:45:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 12:45:04 -0600 |
commit | 1ba862b26feadc6b0c65b233bd2c484c6fa48475 (patch) | |
tree | 179628c5d842c53709a637de9cde91f69aaf8e3f /src/test | |
parent | 6de4bb01f4d42a526f3c6294f249fd6c024d5ef8 (diff) |
style: Latest clippy suggestions (#2048)
Have fixed a few new suggestions from the latest version of clippy.
Diffstat (limited to 'src/test')
-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()) } } |