Skip to content

Make SequenceWriter generic over Error type#601

Merged
alex merged 2 commits intoalex:mainfrom
trail-of-forks:ft/sequencewriter-generic-error
Feb 25, 2026
Merged

Make SequenceWriter generic over Error type#601
alex merged 2 commits intoalex:mainfrom
trail-of-forks:ft/sequencewriter-generic-error

Conversation

@facutuesca
Copy link
Contributor

Same as #599, but based on main now that #597 is merged

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
&|w: &mut asn1::Writer| {
w.write_element(&1i64)?;
w.write_element(&3i64)?;
Ok(())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work if you annotate this as Ok::<_, asn1::WriteError>?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If yes, I'd prefer that style.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed!

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
@alex alex merged commit 3c06ac2 into alex:main Feb 25, 2026
13 checks passed
@facutuesca facutuesca deleted the ft/sequencewriter-generic-error branch February 25, 2026 23:23
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.

2 participants