-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add Into conversions for Blob to [u8] (#3877)
## Motivation and Context Often I have a &[u8] or a Vec<u8>, but the sdk function takes a Blob. It would be convenient to pass the my_vec instead of aws_smithy_types::Blob::new(my_vec) ## Description In blob.rs I added Into<Vec<u8>> for Blob Into<Blob> for Vec<u8> Into<Blob> for &[u8] ## Testing Added a test to blob.rs to test the various scenarios. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
- Loading branch information
1 parent
8e8101a
commit ef07c88
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters