From aaf9774b0c5d3e355969b55529776f857ffdb8d1 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Wed, 15 Jan 2025 09:29:32 +0000 Subject: [PATCH] deploy: ae04c8a790b0d949d1f5303f91a6a6c2c40a9f9e --- api/help.html | 2 +- api/settings.html | 2 +- api/src/iceberg/io/object_cache.rs.html | 4 +++- api/src/iceberg/utils.rs.html | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/api/help.html b/api/help.html index b3855f23b..f79e7b68c 100644 --- a/api/help.html +++ b/api/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/api/settings.html b/api/settings.html index 0b4d7eab8..dfaf9d286 100644 --- a/api/settings.html +++ b/api/settings.html @@ -1 +1 @@ -Settings

Rustdoc settings

Back
\ No newline at end of file +Settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/api/src/iceberg/io/object_cache.rs.html b/api/src/iceberg/io/object_cache.rs.html index 09fa6659d..e18188026 100644 --- a/api/src/iceberg/io/object_cache.rs.html +++ b/api/src/iceberg/io/object_cache.rs.html @@ -407,6 +407,7 @@ 407 408 409 +410
// 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()
     })
 }
 
\ No newline at end of file