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

@@ -31,7 +31,6 @@ pub async fn collect_batches(stream: SendableRecordBatchStream) -> Result<Record
#[cfg(test)]
mod tests {
use std::mem;
use std::pin::Pin;
use std::sync::Arc;
@@ -59,7 +58,7 @@ mod tests {
type Item = Result<RecordBatch>;
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 {
Poll::Ready(Some(Ok(batch)))