# Make \`toggle\` method accept \`impl Into\<Option\<bool\>\>\` \(\#3446\) · gitcafe/zed

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

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

Visibility: public

Requested revision: df5de47a7866e94cbfff391dd086c31773a432f0

Requested commit: df5de47a7866e94cbfff391dd086c31773a432f0

Commit: df5de47a7866e94cbfff391dd086c31773a432f0

Tree: 40a0c35b3b561f2effafc9457c2d0048d7c4fcbd

Author: Marshall Bowers

Committer: GitHub

## Message

```
Make `toggle` method accept `impl Into<Option<bool>>` (#3446)

This PR makes the `toggle` method on the various list components accept
an `impl Into<Option<bool>>` instead of just an `Option<bool>`.

This allows a caller with just a `bool` avoid having to wrap the
`Option` themselves.

Release Notes:

- N/A
```

## Parents

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

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