-
Notifications
You must be signed in to change notification settings - Fork 363
Making Error type public so that consumers don't have to create their own type alias #298
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
Conversation
You beat me to the punch by minutes! |
@bahildebrand My bad I should have marked this one as assigned! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the small change.
lambda-runtime/examples/basic.rs
Outdated
@@ -29,7 +25,7 @@ struct Response { | |||
} | |||
|
|||
#[tokio::main] | |||
async fn main() -> Result<(), Error> { | |||
async fn main() -> Result<(), lambda_runtime::Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we include the error type instead? Same for the other examples as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah I totally agree, I think it would look better as an include. Let me address that and push the change up.
All good haha! It wasn't a large change, so not much time was spent on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I meant to approve on the last one. My comment is a nit. Up to you if you want to address it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and timely for v.0.3
… in imports instead.
I agree with your comment! Just pushed a commit up with that change. |
Issue #, if available: #297
Description of changes: The
Error
type alias was formerly public only to the lambda_runtime crate. Made this public and replace customer type aliases elsewhere.By submitting this pull request