Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump tokio from 0.2.25 to 1.25.0 #69

Merged
merged 3 commits into from
Mar 11, 2024
Merged

Conversation

OJFord
Copy link
Owner

@OJFord OJFord commented Mar 11, 2024

Bumps tokio from 0.2.25 to 1.25.0.


updated-dependencies:

  • dependency-name: tokio
    dependency-type: direct:production
    ...

dependabot bot and others added 2 commits March 11, 2024 22:25
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.25 to 1.25.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](tokio-rs/tokio@tokio-0.2.25...tokio-1.25.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@OJFord
Copy link
Owner Author

OJFord commented Mar 11, 2024

Originally in #20

```
 error[E0599]: the method `read_to_end` exists for opaque type `impl AsyncRead + Send`, but its trait bounds were not satisfied
  --> lambda-smtp-relay/./handler.rs:78:6
   |
68 | /     s3.get_object(GetObjectRequest {
69 | |         bucket: env::var("S3_BUCKET").expect("Missing $S3_BUCKET"),
70 | |         key: message_id.into(),
71 | |         ..Default::default()
...  |
77 | |     .into_async_read()
78 | |     .read_to_end(&mut content)
   | |     -^^^^^^^^^^^ method cannot be called on `impl AsyncRead + Send` due to unsatisfied trait bounds
   | |_____|
   |
   |
   = note: the following trait bounds were not satisfied:
           `impl tokio::io::async_read::AsyncRead + Send: AsyncRead`
           which is required by `impl tokio::io::async_read::AsyncRead + Send: AsyncReadExt`
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
1  + use tokio::io::util::async_read_ext::AsyncReadExt;
   |

warning: unused import: `tokio::io::AsyncReadExt`
  --> lambda-smtp-relay/./handler.rs:20:5
   |
20 | use tokio::io::AsyncReadExt;
   |     ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default
```
@OJFord OJFord force-pushed the dependabot/cargo/tokio-1.25.0 branch from b296aa9 to 4999ec1 Compare March 11, 2024 22:47
@OJFord OJFord merged commit a7b939e into master Mar 11, 2024
1 check passed
@OJFord OJFord deleted the dependabot/cargo/tokio-1.25.0 branch March 11, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant