Resolves #5
User perspective
Include the trim_trailing_whitespace property into the check and fix command.
Developer perspective
This Pull Request adds the support for trim_trailing_whitespace, the first line based property, which is supported, after the end_of_line property. Therefore, the handling of the end_of_line character, with the platform default as fallback, becomes relevant. For this a small refactoring in end_of_line.rs is also part of the changes.
Resolves #5
### User perspective
Include the `trim_trailing_whitespace` property into the `check` and `fix` command.
### Developer perspective
This Pull Request adds the support for `trim_trailing_whitespace`, the first line based property, which is supported, after the `end_of_line` property. Therefore, the handling of the `end_of_line` character, with the platform default as fallback, becomes relevant. For this a small refactoring in `end_of_line.rs` is also part of the changes.