Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error: no method named `as_slice` found for type `std::string::String` in the current scope
- --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19158:31
- |
- 19158 | response.body.as_slice(),
- | ^^^^^^^^
- error[E0308]: mismatched types
- --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19192:85
- |
- 19192 | _ => Err(UploadPartError::from_body(String::from_utf8_lossy(&response.body).as_ref()))
- | ^^^^^^^^^^^^^^ expected slice, found struct `std::string::String`
- |
- = note: expected type `&[u8]`
- found type `&std::string::String`
- = help: here are some functions which might fulfill your needs:
- - .as_bytes()
- error: no method named `as_slice` found for type `std::string::String` in the current scope
- --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19275:31
- |
- 19275 | response.body.as_slice(),
- | ^^^^^^^^
- error[E0308]: mismatched types
- --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19309:89
- |
- 19309 | _ => Err(UploadPartCopyError::from_body(String::from_utf8_lossy(&response.body).as_ref()))
- | ^^^^^^^^^^^^^^ expected slice, found struct `std::string::String`
- |
- = note: expected type `&[u8]`
- found type `&std::string::String`
- = help: here are some functions which might fulfill your needs:
- - .as_bytes()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement