# Use \`\.is_some_and\(\)\` instead of \`\.is_some\(\) && \.unwrap\(\)\` \(\#9704\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eec8660759574644d884adc3ca012895fcd7ebbd

Requested commit: eec8660759574644d884adc3ca012895fcd7ebbd

Commit: eec8660759574644d884adc3ca012895fcd7ebbd

Tree: 73d224405acd8774736a167f9987228547dced4b

Author: Waffle Maybe

Committer: GitHub

## Message

```
Use `.is_some_and()` instead of `.is_some() && .unwrap()` (#9704)

That's nicer & more readable.

(I just noticed that this looks weird while trying to understand why zed
changes my cursor, so decided to make a quick fix (btw the issue with
the cursor is that zed always loads cursor named "default" on wayland))

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
```

## Parents

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

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