Commit 2d89966
authored
Fix deprecated as_slice() calls in aws-smithy-checksums (#4347)
## Motivation and Context
This PR fixes deprecation warnings from the generic-array crate upgrade
by replacing deprecated `as_slice()` method calls with `as_ref()`.
## Description
- Replaced `as_slice()` with `as_ref()` in SHA1, SHA256, and MD5
checksum implementations
- Bumped aws-smithy-checksums version from 0.63.9 to 0.63.10
## Testing
- ✅ `cargo check` passes
- ✅ `cargo test` passes (all 20 tests)
- ✅ Pre-commit hooks pass
## Checklist
- [x] I have updated `Cargo.toml` if I made changes to dependencies
- [x] I have updated the version number if I made changes to the crate
- [x] I have run `cargo test` locally and it passes
- [x] I have run `cargo clippy` locally and it passes
Fixes the following compilation warnings:
```
error: use of deprecated method `sha1::digest::generic_array::GenericArray::<T, N>::as_slice`: please upgrade to generic-array 1.x
```1 parent d4c11dd commit 2d89966
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
0 commit comments