-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1566 from Byron/merge
octopus-merge (part 1: tree-editing)
- Loading branch information
Showing
42 changed files
with
2,889 additions
and
357 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
use gix_features::hash::Sha1; | ||
use gix_features::hash::Hasher; | ||
|
||
#[cfg(not(feature = "fast-sha1"))] | ||
#[test] | ||
fn size_of_sha1() { | ||
assert_eq!(std::mem::size_of::<Sha1>(), 96); | ||
assert_eq!(std::mem::size_of::<Hasher>(), 96); | ||
} | ||
|
||
#[cfg(feature = "fast-sha1")] | ||
#[test] | ||
fn size_of_sha1() { | ||
assert_eq!( | ||
std::mem::size_of::<Sha1>(), | ||
std::mem::size_of::<Hasher>(), | ||
if cfg!(target_arch = "x86") { 96 } else { 104 } | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.