diff options
Diffstat (limited to 'vendor/bstr/src/byteset')
-rw-r--r-- | vendor/bstr/src/byteset/scalar.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vendor/bstr/src/byteset/scalar.rs b/vendor/bstr/src/byteset/scalar.rs index 28bff673d..46ebfba1e 100644 --- a/vendor/bstr/src/byteset/scalar.rs +++ b/vendor/bstr/src/byteset/scalar.rs @@ -4,11 +4,7 @@ use core::{cmp, usize}; -#[cfg(target_pointer_width = "32")] -const USIZE_BYTES: usize = 4; - -#[cfg(target_pointer_width = "64")] -const USIZE_BYTES: usize = 8; +const USIZE_BYTES: usize = core::mem::size_of::<usize>(); // The number of bytes to loop at in one iteration of memchr/memrchr. const LOOP_SIZE: usize = 2 * USIZE_BYTES; |