diff --git a/crates/factor-outbound-redis/src/host.rs b/crates/factor-outbound-redis/src/host.rs index baf3bb3c91..a2d21d9ba5 100644 --- a/crates/factor-outbound-redis/src/host.rs +++ b/crates/factor-outbound-redis/src/host.rs @@ -74,7 +74,10 @@ impl v2::HostConnection for crate::InstanceState { payload: Vec, ) -> Result<(), Error> { let conn = self.get_conn(connection).await.map_err(other_error)?; - conn.publish(&channel, &payload) + // The `let () =` syntax is needed to suppress a warning when the result type is inferred. + // You can read more about the issue here: + let () = conn + .publish(&channel, &payload) .await .map_err(other_error)?; Ok(()) @@ -99,7 +102,9 @@ impl v2::HostConnection for crate::InstanceState { value: Vec, ) -> Result<(), Error> { let conn = self.get_conn(connection).await.map_err(other_error)?; - conn.set(&key, &value).await.map_err(other_error)?; + // The `let () =` syntax is needed to suppress a warning when the result type is inferred. + // You can read more about the issue here: + let () = conn.set(&key, &value).await.map_err(other_error)?; Ok(()) }