Skip to content

Commit 75bd3c0

Browse files
committed
clang-format: mark ClangFormatStyle as non_exhaustive
This allows for more styles to be added in the future.
1 parent ba20dfc commit 75bd3c0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
- Support for `GNU` as a clang-format style
2121
- Support for `Microsoft` as a clang-format style
2222

23+
### Changed
24+
25+
- `ClangFormatStyle` enum is now marked as `non_exhaustive` to allow for more styles in the future
26+
2327
## [0.2.0](https://github.com/KDAB/clang-format-rs/compare/v0.1.3...v0.2.0) - 2023-08-02
2428

2529
### Added

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use std::process::{Command, Stdio};
1919
/// This list is created from
2020
/// <https://clang.llvm.org/docs/ClangFormatStyleOptions.html#basedonstyle>
2121
#[derive(Debug, PartialEq)]
22+
#[non_exhaustive]
2223
pub enum ClangFormatStyle {
2324
/// A style complying with [Chromium’s style guide](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/styleguide/styleguide.md)
2425
Chromium,

0 commit comments

Comments
 (0)