Reuse `FormatResult` and `FormatterIterationError` in `format_stdin.rs` (#6985)
## Summary
Ensures that we use the same error types and messages. Also renames
those struct to `FormatCommand*` for consistency, and removes the
`FormatCommandResult::Skipped` variant in favor of skipping in the
iterator directly.