Skip to content

Conversation

tisonkun
Copy link
Contributor

This closes #654 (comment).

While I agree @KodrAus's comment at #654 (comment), this is not a generally breaking down kv_x to kv + x.

But that value's std_support can work with kv + std. kv_std introduces an extra feature of value-bag/error, which is only used for:

    pub fn to_borrowed_error(&self) -> Option<&(dyn std::error::Error + 'static)> {
        self.inner.to_borrowed_error()
    }

above.

Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@KodrAus
Copy link
Contributor

KodrAus commented Jan 10, 2025

Thanks @tisonkun. I think this specific change is reasonable to make 👍

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.

kv_std should be broken down into kv + std?
2 participants