Skip to content

Commit 554ce01

Browse files
danieldgvberger
authored andcommitted
Add #[non_exhaustive] to OutputInfo
This allows fields to be added in the future without needing an API break. Because OutputInfo is already a large struct, it's unlikely anyone is fully destructuring it.
1 parent 79a6501 commit 554ce01

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
- Batch output information updates instead of potentially making multiple
66
callbacks for one logical change
77

8+
#### Breaking Changes
9+
10+
- Mark OutputInfo as `#[non_exhaustive]` to allow future expansion without
11+
breaking API.
12+
813
#### Additions
914

1015
- `Window::start_interactive_move` to enable dragging the window with a user action

src/output.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub struct Mode {
4141
}
4242

4343
#[derive(Clone, Debug)]
44+
#[non_exhaustive]
4445
/// Compiled information about an output
4546
pub struct OutputInfo {
4647
/// The ID of this output as a global

0 commit comments

Comments
 (0)