chiark / gitweb /
Clippy fix: use write_all to beep.
authorSimon Tatham <anakin@pobox.com>
Fri, 5 Jan 2024 22:59:08 +0000 (22:59 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 6 Jan 2024 08:53:31 +0000 (08:53 +0000)
commitb79aecad29ed78d6dfc511bf33e6238e987dfdbc
tree88ac363fa7464baba1d72afc4f931dcece9a95ea
parentb01a7acb0b3f42c280012e3ec08e091e99502c2f
Clippy fix: use write_all to beep.

Clippy complains that I used stdout().write(), and although I checked
the error code, I didn't also check whether it had written the full
buffer or only part of it.

But it didn't notice that the buffer was one byte long!
src/tui.rs