Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Formatting of :record_match #527

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Fix Formatting of :record_match #527

merged 1 commit into from
Dec 9, 2023

Conversation

maennchen
Copy link
Contributor

Fixes #445

Example Error before:

Please file a bug in https://github.com/jeremyjh/dialyxir/issues with this message.

Unknown warning:
:record_match


Legacy warning:
src/jwe/jose_jwe_alg_ecdh_ss.erl:269:1: Matching of pattern {'jose_jwe_alg_ecdh_ss', SPK = {'jose_jwk', _, _, _}, _, _, _, _, _, _} tagged with a record name violates the declared type of #jose_jwe_alg_ecdh_ss{spk::'undefined' | {_,map()},apu::'undefined' | binary(),apv::'undefined' | binary(),wrap::'aes_gcm_kw' | 'aes_kw' | 'c20p_kw' | 'undefined' | 'xc20p_kw',bits::'undefined' | 128 | 192 | 256,iv::'undefined' | binary(),tag::'undefined' | binary()}

Example Error after:

src/jwe/jose_jwe_alg_ecdh_ss.erl:269:1:record_match
The pattern {'jose_jwe_alg_ecdh_ss', SPK = {'jose_jwk', _, _, _}, _, _, _, _, _, _} violates the declared type for ##jose_jwe_alg_ecdh_ss{spk::'undefined' | {_,map()},apu::'undefined' | binary(),apv::'undefined' | binary(),wrap::'aes_gcm_kw' | 'aes_kw' | 'c20p_kw' | 'undefined' | 'xc20p_kw',bits::'undefined' | 128 | 192 | 256,iv::'undefined' | binary(),tag::'undefined' | binary()}{}.

@maennchen maennchen changed the title Fix Formatting of record_match Fix Formatting of :record_match Dec 7, 2023
@jeremyjh jeremyjh merged commit b928e39 into jeremyjh:master Dec 9, 2023
12 checks passed
@jeremyjh
Copy link
Owner

jeremyjh commented Dec 9, 2023

Thanks!

@maennchen maennchen deleted the jm/warning_record_match branch December 9, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unknown warning :record_match
2 participants