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

ready-cache: Properly expose error source #467

Merged
merged 2 commits into from
Aug 31, 2020

Conversation

olix0r
Copy link
Collaborator

@olix0r olix0r commented Aug 29, 2020

The ready_cache::error::Failed type does not actually expose its inner
error type via Error::source. This change fixes this and improves
debug formatting.

The `ready_cache::error::Failed` type does not actually expose its inner
error type via `Error::source`. This change fixes this and improves
debug formatting.
@olix0r olix0r force-pushed the ver/ready-cache-error-fixup branch from c9ce694 to b6ff55b Compare August 29, 2020 01:29
@olix0r olix0r requested a review from jonhoo August 29, 2020 16:32
@@ -6,9 +6,12 @@ pub struct Failed<K>(pub K, pub crate::BoxError);

// === Failed ===

impl<K> std::fmt::Debug for Failed<K> {
impl<K: std::fmt::Debug> std::fmt::Debug for Failed<K> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note that this is a backwards-incompatible change. So would have to be slated for next major release (which I guess we're in the process of preparing probably). cc @LucioFranco

Copy link
Member

Choose a reason for hiding this comment

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

we are, in fact (and linkerd already depends on tower master)

Copy link
Member

Choose a reason for hiding this comment

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

👍 I am hoping to hop back on after tokio 0.3 so fine to push this onto master

@olix0r olix0r merged commit ad348d8 into tower-rs:master Aug 31, 2020
@olix0r olix0r deleted the ver/ready-cache-error-fixup branch August 31, 2020 14:21
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.

None yet

4 participants