From 0828f5ce5d311437dea3382406ec03db1b46e788 Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Sun, 28 Jan 2024 11:24:06 -0500 Subject: [PATCH] Restore commented tests These seem to have been commented by accident in #298, and are still passing. --- src/bytes_mut.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index daa3a0f4d..9af5c6d68 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -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); @@ -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 {}