# Minor stylistic cleanup in Windows platform \(\#35503\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f3f2dba606229a9c9dd3af728b9ed430fbcf9548)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f3f2dba606229a9c9dd3af728b9ed430fbcf9548

Requested commit: f3f2dba606229a9c9dd3af728b9ed430fbcf9548

Commit: f3f2dba606229a9c9dd3af728b9ed430fbcf9548

Tree: 2084dbfde64714a7abfc2cbb33d14bd2699088c2

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Minor stylistic cleanup in Windows platform (#35503)

This PR doesn't change any logic, it just cleans up some naming and
style in the windows platform layer.

* Rename `WindowsWindowStatePtr` to `WindowsWindowInner`, since it isn't
a pointer type.
* Move window event handler methods into an impl on this type, so that
all of the `state_ptr: &Rc<WindowsWindowInner>` parameters can just be
replaced with `&self`.
* In window creation, use a `match` instead of a conditional followed by
an unwrap

There's a lot of whitespace in the diff, so view it with `w=1`.

Release Notes:

- N/A
```

## Parents

- [0ea4016e6613e9102baab34f7e128756aeb6776e](https://git.cafe/gitcafe/zed/commit/0ea4016e6613e9102baab34f7e128756aeb6776e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f3f2dba606229a9c9dd3af728b9ed430fbcf9548?format=markdown)
