diff --git a/api/help.html b/api/help.html index b3855f23b..f79e7b68c 100644 --- a/api/help.html +++ b/api/help.html @@ -1 +1 @@ -
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -424,7 +425,8 @@
// specific language governing permissions and limitations
// under the License.
-use std::sync::Arc;
+use std::mem::size_of_val;
+use std::sync::Arc;
use crate::io::FileIO;
use crate::spec::{
diff --git a/api/src/iceberg/utils.rs.html b/api/src/iceberg/utils.rs.html
index 4dfec98c6..8df5d7c7b 100644
--- a/api/src/iceberg/utils.rs.html
+++ b/api/src/iceberg/utils.rs.html
@@ -57,7 +57,7 @@
// specific language governing permissions and limitations
// under the License.
-use std::num::NonZero;
+use std::num::NonZeroUsize;
// Use a default value of 1 as the safest option.
// See https://doc.rust-lang.org/std/thread/fn.available_parallelism.html#limitations
@@ -73,13 +73,13 @@
/// are circumstances where the level of available
/// parallelism can change during the lifetime of an executing
/// process, but this should not be called in a hot loop.
-pub(crate) fn available_parallelism() -> NonZero<usize> {
+pub(crate) fn available_parallelism() -> NonZeroUsize {
std::thread::available_parallelism().unwrap_or_else(|_err| {
// Failed to get the level of parallelism.
// TODO: log/trace when this fallback occurs.
// Using a default value.
- NonZero::new(DEFAULT_PARALLELISM).unwrap()
+ NonZeroUsize::new(DEFAULT_PARALLELISM).unwrap()
})
}