File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,11 @@ mod tests {
78
78
79
79
#[ test]
80
80
fn size_of_change ( ) {
81
- assert_eq ! (
82
- std:: mem:: size_of:: <Change >( ) ,
83
- 46 ,
84
- "this type shouldn't grow without us knowing"
81
+ let actual = std:: mem:: size_of :: < Change > ( ) ;
82
+ assert ! (
83
+ actual <= 46 ,
84
+ "{} <= 46: this type shouldn't grow without us knowing" ,
85
+ actual
85
86
)
86
87
}
87
88
}
Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ fn fixture_bytes(path: &str) -> Vec<u8> {
30
30
31
31
#[ test]
32
32
fn size_in_memory ( ) {
33
- assert_eq ! (
34
- std:: mem:: size_of:: <git_object:: Object >( ) ,
35
- 264 ,
36
- "Prevent unexpected growth of what should be lightweight objects"
33
+ let actual = std:: mem:: size_of :: < git_object:: Object > ( ) ;
34
+ assert ! (
35
+ actual <= 264 ,
36
+ "{} <= 264: Prevent unexpected growth of what should be lightweight objects" ,
37
+ actual
37
38
)
38
39
}
You can’t perform that action at this time.
0 commit comments