mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #12429 - cjkenn:12412, r=Ms2ger
Remove assert statement from window. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12412 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because simple removal of assert, no logic added or changed. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12429) <!-- Reviewable:end -->
This commit is contained in:
commit
39a0940d2e
1 changed files with 0 additions and 1 deletions
|
@ -242,7 +242,6 @@ impl Window {
|
|||
fn handle_window_event(&self, event: glutin::Event) -> bool {
|
||||
match event {
|
||||
Event::ReceivedCharacter(ch) => {
|
||||
assert!(self.pending_key_event_char.get().is_none());
|
||||
if !ch.is_control() {
|
||||
self.pending_key_event_char.set(Some(ch));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue