zed icon indicating copy to clipboard operation
zed copied to clipboard

Replace todo calls with error values in linux/platform

Open osa1 opened this issue 2 years ago • 3 comments

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

osa1 avatar Feb 28 '24 12:02 osa1

We require contributors to sign our Contributor License Agreement, and we don't have @osa1 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

cla-bot[bot] avatar Feb 28 '24 12:02 cla-bot[bot]

@cla-bot check

osa1 avatar Feb 28 '24 12:02 osa1

The cla-bot has been summoned, and re-checked this pull request!

cla-bot[bot] avatar Feb 28 '24 12:02 cla-bot[bot]