Skip to content

quick pass at stream_all_msg refactor

Sign in for the full log view
GitHub Actions / workspace failed Jun 11, 2024 in 1s

workspace

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 279 in xmtp_mls/src/subscriptions.rs

See this annotation in the file changed.

@github-actions github-actions / workspace

the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `std::ops::FromResidual`)

error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `std::ops::FromResidual`)
   --> xmtp_mls/src/subscriptions.rs:279:85
    |
277 |           tokio::spawn(async move {
    |  ______________________-
278 | |             let client_pointer = client.clone();
279 | |             let mut convo_stream = Self::stream_conversations(&client_pointer).await?;
    | |                                                                                     ^ cannot use the `?` operator in an async block that returns `()`
280 | |
...   |
298 | |             }
299 | |         });
    | |_________- this function should return `Result` or `Option` to accept `?`
    |
    = help: the trait `std::ops::FromResidual<std::result::Result<std::convert::Infallible, client::ClientError>>` is not implemented for `()`

Check failure on line 279 in xmtp_mls/src/subscriptions.rs

See this annotation in the file changed.

@github-actions github-actions / workspace

the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `std::ops::FromResidual`)

error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `std::ops::FromResidual`)
   --> xmtp_mls/src/subscriptions.rs:279:85
    |
277 |           tokio::spawn(async move {
    |  ______________________-
278 | |             let client_pointer = client.clone();
279 | |             let mut convo_stream = Self::stream_conversations(&client_pointer).await?;
    | |                                                                                     ^ cannot use the `?` operator in an async block that returns `()`
280 | |
...   |
298 | |             }
299 | |         });
    | |_________- this function should return `Result` or `Option` to accept `?`
    |
    = help: the trait `std::ops::FromResidual<std::result::Result<std::convert::Infallible, client::ClientError>>` is not implemented for `()`