We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Header.unapply returns an Option. From the compiler's point of view, this means that it can potentially fail - meaning a pattern match like this
Header.unapply
Option
header match { case Header(_, _) => ??? }
is non-exhaustive, and triggers the corresponding compiler lint.
We can fix this by changing the return type of unapply to Some[(String, String)] - see this Scastie.
unapply
Some[(String, String)]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Header.unapply
returns anOption
. From the compiler's point of view, this means that it can potentially fail - meaning a pattern match like thisis non-exhaustive, and triggers the corresponding compiler lint.
We can fix this by changing the return type of
unapply
toSome[(String, String)]
- see this Scastie.The text was updated successfully, but these errors were encountered: