Skip to content

Conversation

@baloo
Copy link
Member

@baloo baloo commented Jan 3, 2023

This removes some duplication but most importantly adds the missing implementations.

@baloo baloo changed the title der: impl TryFrom<AnyRef> in the string macro der: missing impl TryFrom<AnyRef> Jan 3, 2023
@@ -1,17 +1,47 @@
macro_rules! impl_string_type {
macro_rules! impl_type {
Copy link
Member Author

Choose a reason for hiding this comment

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

I splitted it as I think I can just reuse this in BitString, GeneralizedTime, Int*, OctetString and UtcTime

@baloo baloo force-pushed the baloo/owned-api/missing-tryfrom branch 2 times, most recently from 697ba62 to b822b68 Compare January 3, 2023 03:48
@baloo baloo force-pushed the baloo/owned-api/missing-tryfrom branch from b822b68 to 32fcd62 Compare January 3, 2023 18:16
Copy link
Member

@tarcieri tarcieri left a comment

Choose a reason for hiding this comment

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

Looks like a nice refactor, albeit a bit hard to review.

If you're happy with this I can merge.

@baloo
Copy link
Member Author

baloo commented Jan 4, 2023

Yeah, there is some noise. It's slightly easier with whitespace removed.
https://github.com/RustCrypto/formats/pull/834/files?w=1

I don't have much to add, this was mostly shuffling stuff around.

@tarcieri tarcieri merged commit eab27ea into RustCrypto:master Jan 4, 2023
@baloo baloo deleted the baloo/owned-api/missing-tryfrom branch January 4, 2023 19:40
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