Skip to content

Commit

Permalink
Incorporate feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisanti committed Nov 15, 2022
1 parent 9207c49 commit c29accf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-config/src/imds/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl Client {
InnerImdsError::InvalidUtf8 => {
ImdsError::Unexpected("IMDS returned invalid UTF-8".into())
}
_ => ImdsError::ErrorResponse {
InnerImdsError::BadStatus => ImdsError::ErrorResponse {
response: context.into_raw().into_parts().0,
},
},
Expand Down
7 changes: 2 additions & 5 deletions rust-runtime/aws-smithy-http/src/event_stream/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ impl<T, E> Receiver<T, E> {
Err(SdkError::service_error(err, RawMessage::Decoded(message)))
}
},
Err(err) => Err(SdkError::response_error(
Box::new(err),
RawMessage::Decoded(message),
)),
Err(err) => Err(SdkError::response_error(err, RawMessage::Decoded(message))),
}
}

Expand Down Expand Up @@ -195,7 +192,7 @@ impl<T, E> Receiver<T, E> {
.decode_frame(self.buffer.buffered())
.map_err(|err| {
SdkError::response_error(
Box::new(err),
err,
// the buffer has been consumed
RawMessage::Invalid(None),
)
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-http/src/event_stream/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct MessageStreamError {
}

#[derive(Debug)]
pub enum MessageStreamErrorKind {
enum MessageStreamErrorKind {
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}

Expand Down

0 comments on commit c29accf

Please sign in to comment.