Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nazo6 committed Nov 12, 2024
1 parent a0737a1 commit 335c171
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions lib/rktk-keymanager/src/state/manager/transparent/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ pub struct TransparentReport {
pub ble_bond_clear: bool,
pub output: Output,
}

impl TransparentReport {
pub const fn new() -> Self {

Check warning on line 11 in lib/rktk-keymanager/src/state/manager/transparent/report.rs

View workflow job for this annotation

GitHub Actions / check

you should consider adding a `Default` implementation for `TransparentReport`

Check warning on line 11 in lib/rktk-keymanager/src/state/manager/transparent/report.rs

View workflow job for this annotation

GitHub Actions / check

you should consider adding a `Default` implementation for `TransparentReport`
Self {
flash_clear: false,
ble_bond_clear: false,
output: Output::Usb,
}
}
}
8 changes: 4 additions & 4 deletions lib/rktk-keymanager/src/state/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod prelude {
mouse_report: None,
media_keyboard_report: None,
highest_layer: 0,
transparent_report: TransparentReport::new(Output::Usb),
transparent_report: TransparentReport::new(),
};
pub const EMPTY_REPORT: StateReport = StateReport {
keyboard_report: Some(KeyboardReport {
Expand All @@ -49,7 +49,7 @@ mod prelude {
pan: 0,
}),
media_keyboard_report: Some(MediaKeyboardReport { usage_id: 0 }),
transparent_report: TransparentReport::new(Output::Usb),
transparent_report: TransparentReport::new(),
highest_layer: 0,
};
pub const KEYBOARD_ONLY_REPORT: StateReport = StateReport {
Expand All @@ -61,7 +61,7 @@ mod prelude {
}),
mouse_report: None,
media_keyboard_report: None,
transparent_report: TransparentReport::new(Output::Usb),
transparent_report: TransparentReport::new(),
highest_layer: 0,
};
pub const MOUSE_ONLY_REPORT: StateReport = StateReport {
Expand All @@ -74,7 +74,7 @@ mod prelude {
pan: 0,
}),
media_keyboard_report: None,
transparent_report: TransparentReport::new(Output::Usb),
transparent_report: TransparentReport::new(),
highest_layer: 0,
};

Expand Down

0 comments on commit 335c171

Please sign in to comment.