Skip to content

Commit

Permalink
Restore commented tests
Browse files Browse the repository at this point in the history
These seem to have been commented by accident in tokio-rs#298, and are still
passing.
  • Loading branch information
braddunbar committed Jan 28, 2024
1 parent 185a45f commit 0828f5c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bytes_mut.rs
Expand Up @@ -1406,7 +1406,6 @@ fn original_capacity_from_repr(repr: usize) -> usize {
1 << (repr + (MIN_ORIGINAL_CAPACITY_WIDTH - 1))
}

/*
#[test]
fn test_original_capacity_to_repr() {
assert_eq!(original_capacity_to_repr(0), 0);
Expand Down Expand Up @@ -1455,7 +1454,6 @@ fn test_original_capacity_from_repr() {
assert_eq!(min_cap * 32, original_capacity_from_repr(6));
assert_eq!(min_cap * 64, original_capacity_from_repr(7));
}
*/

unsafe impl Send for BytesMut {}
unsafe impl Sync for BytesMut {}
Expand Down

0 comments on commit 0828f5c

Please sign in to comment.