Co-Authored-By: An old Stack Overflow answer, blindly accepting the compiler's suggestions, and a linter.