Commit fceeb67 1 parent ed3b3be commit fceeb67 Copy full SHA for fceeb67
File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -278,11 +278,11 @@ let my_byte_lsb = MyLsbByte::new()
278
278
. with_level (2 )
279
279
. with_present (true );
280
280
281
- // .- present
282
- // | .- level
283
- // | | .- system
284
- // | | | .- kind
285
- assert ! (my_byte_lsb . 0 == 0b1_10_0_1010 );
281
+ // .- present
282
+ // | .- level
283
+ // | | .- system
284
+ // | | | .- kind
285
+ assert_eq ! (my_byte_lsb . 0 , 0b1_10_0_1010 );
286
286
```
287
287
288
288
The macro generates the reverse order when Msb (most significant bit) is specified:
@@ -307,11 +307,11 @@ let my_byte_msb = MyMsbByte::new()
307
307
. with_level (2 )
308
308
. with_present (true );
309
309
310
- // .- kind
311
- // | .- system
312
- // | | .- level
313
- // | | | .- present
314
- assert ! (my_byte_msb . 0 == 0b1010_0_10_1 );
310
+ // .- kind
311
+ // | .- system
312
+ // | | .- level
313
+ // | | | .- present
314
+ assert_eq ! (my_byte_msb . 0 , 0b1010_0_10_1 );
315
315
```
316
316
317
317
## Custom Representation and Endianness
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ fn attrs() {
112
112
113
113
let full = Full :: new ( ) . with_data ( u64:: MAX ) ;
114
114
assert_eq ! ( full. data( ) , u64 :: MAX ) ;
115
- assert ! ( full == Full :: new( ) . with_data( u64 :: MAX ) ) ;
115
+ assert_eq ! ( full, Full :: new( ) . with_data( u64 :: MAX ) ) ;
116
116
}
117
117
118
118
#[ test]
You can’t perform that action at this time.
0 commit comments