* Remove compilation warnings. * Allow unused only not in tests. * Remove unnecessary mut. * Make CI happy. * Revert "Make CI happy." This reverts commit abb865fe.