瀏覽代碼

Cargo fmt

Alice Wang 2 年之前
父節點
當前提交
4f8de1d09c
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      src/lib.rs

+ 2 - 5
src/lib.rs

@@ -117,11 +117,8 @@ impl Display for Error {
                     f,
                     "The device doesn't have any config space, but the driver expects some"
                 )
-            },
-            Self::SocketDeviceError(e) => write!(
-                f,
-                "Error from the socket device: {e:?}"
-            ),
+            }
+            Self::SocketDeviceError(e) => write!(f, "Error from the socket device: {e:?}"),
         }
     }
 }