From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/bstr/src/byteset/scalar.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'vendor/bstr/src/byteset') 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::(); // The number of bytes to loop at in one iteration of memchr/memrchr. const LOOP_SIZE: usize = 2 * USIZE_BYTES; -- cgit v1.2.3