Skip to content

Conversation

@SamuelSarle
Copy link
Member

Reviewing #24 I saw that we're using sys.const_string --> sys.encode_lines --> [block that takes Bytes] as a crutch with sometimes unexpected outcomes due to the newlines.
I propose a sys.const_bytes helper as a nicer alternative to get the correct behaviour of Const::<Bytes>::with_system(sys, Bytes::from(...)).

A generic Mapper<Input: Message, Output: Message + From<Input>> block for automating the infallible conversions seems useful too.

@artob artob self-assigned this Dec 17, 2024
Copy link
Member

@artob artob left a comment

Choose a reason for hiding this comment

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

LGTM.

@artob artob merged commit 9047c77 into master Dec 17, 2024
3 checks passed
@artob artob deleted the samuel/const_bytes-helper branch December 17, 2024 12:06
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.

5 participants