Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. error: no method named `as_slice` found for type `std::string::String` in the current scope
  2. --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19158:31
  3. |
  4. 19158 | response.body.as_slice(),
  5. | ^^^^^^^^
  6.  
  7. error[E0308]: mismatched types
  8. --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19192:85
  9. |
  10. 19192 | _ => Err(UploadPartError::from_body(String::from_utf8_lossy(&response.body).as_ref()))
  11. | ^^^^^^^^^^^^^^ expected slice, found struct `std::string::String`
  12. |
  13. = note: expected type `&[u8]`
  14. found type `&std::string::String`
  15. = help: here are some functions which might fulfill your needs:
  16. - .as_bytes()
  17.  
  18. error: no method named `as_slice` found for type `std::string::String` in the current scope
  19. --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19275:31
  20. |
  21. 19275 | response.body.as_slice(),
  22. | ^^^^^^^^
  23.  
  24. error[E0308]: mismatched types
  25. --> /home/CORP.INSTRUCTURE.COM/ecoan/crucible/anvil/target/debug/build/rusoto-eb5387f9e4df1a5f/out/s3.rs:19309:89
  26. |
  27. 19309 | _ => Err(UploadPartCopyError::from_body(String::from_utf8_lossy(&response.body).as_ref()))
  28. | ^^^^^^^^^^^^^^ expected slice, found struct `std::string::String`
  29. |
  30. = note: expected type `&[u8]`
  31. found type `&std::string::String`
  32. = help: here are some functions which might fulfill your needs:
  33. - .as_bytes()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement