Skip to content
Snippets Groups Projects
Commit 5dc6c486 authored by Nagy Tibor's avatar Nagy Tibor
Browse files

Small formatting and documentation fixes

parent fa6c19f7
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,6 @@ impl ops::DerefMut for ExNode { ...@@ -53,6 +53,6 @@ impl ops::DerefMut for ExNode {
} }
#[test] #[test]
fn ex_node_size_test(){ fn ex_node_size_test() {
assert_eq!(mem::size_of::<ExNode>(), 512); assert_eq!(mem::size_of::<ExNode>(), 512);
} }
...@@ -8,7 +8,7 @@ pub struct Header { ...@@ -8,7 +8,7 @@ pub struct Header {
pub signature: [u8; 8], pub signature: [u8; 8],
/// Version, should be 1 /// Version, should be 1
pub version: u64, pub version: u64,
/// Disk ID, a 128-byte unique identifier /// Disk ID, a 128-bit unique identifier
pub uuid: [u8; 16], pub uuid: [u8; 16],
/// Disk size, in 512-byte sectors /// Disk size, in 512-byte sectors
pub size: u64, pub size: u64,
...@@ -84,6 +84,6 @@ impl DerefMut for Header { ...@@ -84,6 +84,6 @@ impl DerefMut for Header {
} }
#[test] #[test]
fn header_size_test(){ fn header_size_test() {
assert_eq!(mem::size_of::<Header>(), 512); assert_eq!(mem::size_of::<Header>(), 512);
} }
...@@ -125,6 +125,6 @@ impl ops::DerefMut for Node { ...@@ -125,6 +125,6 @@ impl ops::DerefMut for Node {
} }
#[test] #[test]
fn node_size_test(){ fn node_size_test() {
assert_eq!(mem::size_of::<Node>(), 512); assert_eq!(mem::size_of::<Node>(), 512);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment