diff --git a/src/ex_node.rs b/src/ex_node.rs index d9aa8f594baefcd577c04ae0f3caa2e6acb9fb26..ee745e57bf4a438ce52a16745524c7d3d178c2d9 100644 --- a/src/ex_node.rs +++ b/src/ex_node.rs @@ -53,6 +53,6 @@ impl ops::DerefMut for ExNode { } #[test] -fn ex_node_size_test(){ +fn ex_node_size_test() { assert_eq!(mem::size_of::<ExNode>(), 512); } diff --git a/src/header.rs b/src/header.rs index 83175fb7132a6930ab9a1083cca4a89cb31cf642..589339a00b02ff00635ca932c7e89a6c82eef6d8 100644 --- a/src/header.rs +++ b/src/header.rs @@ -8,7 +8,7 @@ pub struct Header { pub signature: [u8; 8], /// Version, should be 1 pub version: u64, - /// Disk ID, a 128-byte unique identifier + /// Disk ID, a 128-bit unique identifier pub uuid: [u8; 16], /// Disk size, in 512-byte sectors pub size: u64, @@ -84,6 +84,6 @@ impl DerefMut for Header { } #[test] -fn header_size_test(){ +fn header_size_test() { assert_eq!(mem::size_of::<Header>(), 512); } diff --git a/src/node.rs b/src/node.rs index 56a1b975e359d57653d891d18be1b6c93b08eb5c..2c87fcc838f311e78df5e1eb7860a1365eeff754 100644 --- a/src/node.rs +++ b/src/node.rs @@ -125,6 +125,6 @@ impl ops::DerefMut for Node { } #[test] -fn node_size_test(){ +fn node_size_test() { assert_eq!(mem::size_of::<Node>(), 512); }