Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redoxfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Matlik
redoxfs
Commits
5dc6c486
Commit
5dc6c486
authored
8 years ago
by
Nagy Tibor
Browse files
Options
Downloads
Patches
Plain Diff
Small formatting and documentation fixes
parent
fa6c19f7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ex_node.rs
+1
-1
1 addition, 1 deletion
src/ex_node.rs
src/header.rs
+2
-2
2 additions, 2 deletions
src/header.rs
src/node.rs
+1
-1
1 addition, 1 deletion
src/node.rs
with
4 additions
and
4 deletions
src/ex_node.rs
+
1
−
1
View file @
5dc6c486
...
@@ -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
);
}
}
This diff is collapsed.
Click to expand it.
src/header.rs
+
2
−
2
View file @
5dc6c486
...
@@ -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-b
yte
unique identifier
/// Disk ID, a 128-b
it
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
);
}
}
This diff is collapsed.
Click to expand it.
src/node.rs
+
1
−
1
View file @
5dc6c486
...
@@ -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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment