…as it inexplicably changes object sizes.
Unified · Split
| @@ -64,6 +64,7 @@ impl<'a> Commit<'a> { · 63 unmodified lines | |||
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | #[cfg(test)] | 66 | #[cfg(test)] |
| 67 | #[cfg(not(feature = "verbose-object-parsing-errors"))] | ||
| 67 | mod tests { | 68 | mod tests { |
| 68 | use super::*; | 69 | use super::*; |
| 69 | 70 | ||
| @@ -71,7 +72,7 @@ mod tests { · 1 unmodified line | |||
| 71 | fn size_of_commit() { | 72 | fn size_of_commit() { |
| 72 | assert_eq!( | 73 | assert_eq!( |
| 73 | std::mem::size_of::<Commit<'_>>(), | 74 | std::mem::size_of::<Commit<'_>>(), |
| 74 | 208, | 75 | 216, |
| 75 | "the size of an immutable commit shouldn't change unnoticed" | 76 | "the size of an immutable commit shouldn't change unnoticed" |
| 76 | ); | 77 | ); |
| 77 | } | 78 | } |
| @@ -49,6 +49,7 @@ fn linus_signature(time: u32) -> git_actor::immutable::Signature<'static> { · 48 unmodified lines | |||
| 49 | } | 49 | } |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | #[cfg(not(feature = "verbose-object-parsing-errors"))] | ||
| 52 | mod object { | 53 | mod object { |
| 53 | use git_object::immutable::Object; | 54 | use git_object::immutable::Object; |
| 54 | 55 | ||