Fix clazy warning

2 jobs for master in 48 minutes and 40 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
failed #60771
build_clazy_clang_tidy

00:38:19

passed #60770
linux kf5-qt5 qt5.12

00:48:40

44.0%
 
Name Stage Failure
failed
build_clazy_clang_tidy Build
clang-10.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [resources/imap/autotests/CMakeFiles/testretrievecollectionmetadatatask.dir/build.make:166: bin/testretrievecollectionmetadatatask] Error 1
make[1]: *** [CMakeFiles/Makefile2:3845: resources/imap/autotests/CMakeFiles/testretrievecollectionmetadatatask.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
Uploading artifacts for failed job
Uploading artifacts...
WARNING: JUnitTestResults.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1