You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Seems #862 broke the build by now always returning a result from <ModifierKeyCode as Display>::fmt. Also seems the #[cfg] attribute on the match itself isn't correct, as the individual match arms have conditions. Still, even without it still doesn't compile without some tweaks.
To Reproduce
Steps to reproduce the behavior:
Try to build.
Expected behavior
Build fails with:
|
922 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
| --- ^^^^^^^^^^^ expected `Result<(), Error>`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
= note: expected enum `Result<(), std::fmt::Error>`
found unit type `()`
OS
Any
Terminal/Console
Any
The text was updated successfully, but these errors were encountered:
heaths
added a commit
to heaths/crossterm
that referenced
this issue
May 4, 2024
Describe the bug
Seems #862 broke the build by now always returning a result from
<ModifierKeyCode as Display>::fmt
. Also seems the#[cfg]
attribute on the match itself isn't correct, as the individual match arms have conditions. Still, even without it still doesn't compile without some tweaks.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build fails with:
OS
Terminal/Console
The text was updated successfully, but these errors were encountered: