Yujia Qiao преди 4 години
родител
ревизия
2de9147a0f
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 1 4
      src/client.rs

+ 1 - 4
src/client.rs

@@ -392,10 +392,7 @@ impl<T: 'static + Transport> ControlChannel<T> {
 
         // Read hello
         debug!("Reading hello");
-        let nonce = match read_hello(&mut conn)
-            .await
-            .with_context(|| "Failed to read hello from the server")?
-        {
+        let nonce = match read_hello(&mut conn).await? {
             ControlChannelHello(_, d) => d,
             _ => {
                 bail!("Unexpected type of hello");