Skip to content

Enable keep-alive for provisioning socket #737

Enable keep-alive for provisioning socket

Enable keep-alive for provisioning socket #737

GitHub Actions / clippy failed Dec 14, 2023 in 1s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.74.1 (a28077b28 2023-12-04)
  • cargo 1.74.1 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (a28077b 2023-12-04)

Annotations

Check failure on line 640 in libsignal-service-actix/src/push_service.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> libsignal-service-actix/src/push_service.rs:640:67
    |
640 |         let (ws, task) = SignalWebSocket::from_socket(ws, stream, keep_alive);
    |                          ----------------------------             ^^^^^^^^^^- help: try using a conversion method: `.to_string()`
    |                          |                                        |
    |                          |                                        expected `String`, found `bool`
    |                          arguments to this function are incorrect
    |
note: associated function defined here
   --> /home/runner/work/libsignal-service-rs/libsignal-service-rs/libsignal-service/src/websocket.rs:267:12
    |
267 |     pub fn from_socket<WS: WebSocketService + 'static>(
    |            ^^^^^^^^^^^

Check failure on line 631 in libsignal-service-actix/src/push_service.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime parameters or bounds on method `ws` do not match the trait declaration

error[E0195]: lifetime parameters or bounds on method `ws` do not match the trait declaration
   --> libsignal-service-actix/src/push_service.rs:625:14
    |
625 |       async fn ws(
    |  ______________^
626 | |         &mut self,
627 | |         path: &str,
628 | |         additional_headers: &[(&str, &str)],
629 | |         credentials: Option<ServiceCredentials>,
630 | |         keep_alive: bool,
631 | |     ) -> Result<SignalWebSocket, ServiceError> {
    | |_____^ lifetimes do not match method in trait