Skip to content

Commit 3d1cfff

Browse files
committed
Rust misc formatting fixes
1 parent 8b677e7 commit 3d1cfff

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

rust/src/platform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl Platform {
264264
Array::new(handles, count, ())
265265
}
266266
}
267-
267+
268268
// TODO: system_calls
269269
// TODO: add a helper function to define a system call (platform function with a specific type)
270270

rust/src/typecontainer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl TypeContainer {
117117
QualifiedName::free_raw(name);
118118
}
119119
for ty in raw_types {
120-
let _ = unsafe { Type::ref_from_raw(ty) } ;
120+
let _ = unsafe { Type::ref_from_raw(ty) };
121121
}
122122
success
123123
}
@@ -161,7 +161,7 @@ impl TypeContainer {
161161
QualifiedName::free_raw(name);
162162
}
163163
for ty in raw_types {
164-
let _ = unsafe { Type::ref_from_raw(ty) } ;
164+
let _ = unsafe { Type::ref_from_raw(ty) };
165165
}
166166
success
167167
}

rust/tests/typecontainer.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ fn test_immutable_container(_session: &Session, platform: &Platform) {
7979
!plat_type_container.is_mutable(),
8080
"Platform should NOT be mutable!"
8181
);
82-
assert_ne!(platform.types().len(), 0, "Something deleted all the platform types!");
82+
assert_ne!(
83+
platform.types().len(),
84+
0,
85+
"Something deleted all the platform types!"
86+
);
8387
let type_ids = plat_type_container.type_ids().unwrap();
8488
let first_type_id = type_ids.iter().next().unwrap();
8589
// Platform type containers are immutable so these should be false!

0 commit comments

Comments
 (0)