Skip to content

Commit f0d2def

Browse files
committed
fix
1 parent f2688a3 commit f0d2def

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dive-into-rust/src/typesize.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ mod tests {
7777
struct Foo2();
7878
assert_eq!(0, size_of::<Foo2>());
7979

80-
struct Foo3 {};
80+
struct Foo3 {}
8181
assert_eq!(0, size_of::<Foo3>());
8282

8383
struct Foo4 {
8484
x: i8,
85-
};
85+
}
8686
assert_eq!(1, size_of::<Foo4>());
8787
}
8888

@@ -208,7 +208,7 @@ mod tests {
208208

209209
#[test]
210210
fn test_enum_size() {
211-
enum Foo1 {};
211+
enum Foo1 {}
212212
assert_eq!(0, size_of::<Foo1>());
213213

214214
// can't compile

0 commit comments

Comments
 (0)