style: format code and fix linting issues
- Run cargo fmt on all files
- Fix trailing whitespace issues
- Allow dead_code for config fields (will be used in future refactor)
- Fix clippy warning about unnecessary to_string()
- Pre-commit hooks now working properly