mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
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:
@@ -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",
|
||||||
]
|
]
|
||||||
|
|||||||
2
.github/workflows/apidoc.yml
vendored
2
.github/workflows/apidoc.yml
vendored
@@ -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:
|
||||||
|
|||||||
2
.github/workflows/develop.yml
vendored
2
.github/workflows/develop.yml
vendored
@@ -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:
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2023-02-26"
|
channel = "nightly-2023-05-03"
|
||||||
|
|||||||
@@ -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)))
|
||||||
|
|||||||
@@ -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()))
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user