chore(toolchain): update rust-toolchain to 2023-05-03 (#1524)

* chore(toolchain): update rust-toolchain to 2023-05-03

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update workflow yaml

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-05-06 11:34:09 +08:00
committed by GitHub
parent 6fe117d7d5
commit d4f3f617e4
9 changed files with 9 additions and 8 deletions

View File

@@ -12,4 +12,5 @@ rustflags = [
"-Wclippy::print_stdout", "-Wclippy::print_stdout",
"-Wclippy::print_stderr", "-Wclippy::print_stderr",
"-Wclippy::implicit_clone", "-Wclippy::implicit_clone",
"-Aclippy::items_after_test_module",
] ]

View File

@@ -13,7 +13,7 @@ on:
name: Build API docs name: Build API docs
env: env:
RUST_TOOLCHAIN: nightly-2023-02-26 RUST_TOOLCHAIN: nightly-2023-05-03
jobs: jobs:
apidoc: apidoc:

View File

@@ -24,7 +24,7 @@ on:
name: CI name: CI
env: env:
RUST_TOOLCHAIN: nightly-2023-02-26 RUST_TOOLCHAIN: nightly-2023-05-03
jobs: jobs:
typos: typos:

View File

@@ -11,7 +11,7 @@ on:
name: Release name: Release
env: env:
RUST_TOOLCHAIN: nightly-2023-02-26 RUST_TOOLCHAIN: nightly-2023-05-03
SCHEDULED_BUILD_VERSION_PREFIX: v0.3.0 SCHEDULED_BUILD_VERSION_PREFIX: v0.3.0

View File

@@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "nightly-2023-02-26" channel = "nightly-2023-05-03"

View File

@@ -31,7 +31,6 @@ pub async fn collect_batches(stream: SendableRecordBatchStream) -> Result<Record
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use std::mem;
use std::pin::Pin; use std::pin::Pin;
use std::sync::Arc; use std::sync::Arc;
@@ -59,7 +58,7 @@ mod tests {
type Item = Result<RecordBatch>; type Item = Result<RecordBatch>;
fn poll_next(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Option<Self::Item>> { fn poll_next(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
let batch = mem::replace(&mut self.batch, None); let batch = self.batch.take();
if let Some(batch) = batch { if let Some(batch) = batch {
Poll::Ready(Some(Ok(batch))) Poll::Ready(Some(Ok(batch)))

View File

@@ -54,7 +54,7 @@ impl TryFrom<&str> for StaticUserProvider {
let file = File::open(path).context(IoSnafu)?; let file = File::open(path).context(IoSnafu)?;
let credential = io::BufReader::new(file) let credential = io::BufReader::new(file)
.lines() .lines()
.filter_map(|line| line.ok()) .map_while(std::result::Result::ok)
.filter_map(|line| { .filter_map(|line| {
if let Some((k, v)) = line.split_once('=') { if let Some((k, v)) = line.split_once('=') {
Some((k.to_string(), v.as_bytes().to_vec())) Some((k.to_string(), v.as_bytes().to_vec()))

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
///! Common actions for manifest //! Common actions for manifest
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::manifest::ManifestVersion; use crate::manifest::ManifestVersion;

View File

@@ -32,6 +32,7 @@ use table::engine::{TableEngineProcedureRef, TableEngineRef};
/// ///
/// # Panics /// # Panics
/// Panics on error. /// Panics on error.
#[allow(clippy::items_after_test_module)]
pub fn register_procedure_loaders( pub fn register_procedure_loaders(
catalog_manager: CatalogManagerRef, catalog_manager: CatalogManagerRef,
engine_procedure: TableEngineProcedureRef, engine_procedure: TableEngineProcedureRef,