# Replace todo calls with error values in linux/platform \(\#8531\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9095a6b04e1d7eb4e6f2241701b2eec29bf4ca5f

Requested commit: 9095a6b04e1d7eb4e6f2241701b2eec29bf4ca5f

Commit: 9095a6b04e1d7eb4e6f2241701b2eec29bf4ca5f

Tree: e1fbdd538934460216fd596431bbb345fc7218b3

Author: Ömer Sinan Ağacan

Committer: GitHub

## Message

```
Replace todo calls with error values in linux/platform (#8531)

We currently use a mix of unimplemented methods with empty bodies and
`todo!()` calls in linux/platform.

`todo!()`s cause crashes in runtime with accidental key presses or
clicks.

To avoid this, this PR replaces `todo!()`s in linux/platform with error
values.

This helps when working on Zed itself, testing PRs etc.

Release Notes:

- N/A
```

## Parents

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

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