Skip to content

Commit

Permalink
Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Oct 20, 2021
1 parent 7b1d88e commit d3f9b47
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion query/src/datasources/table/fuse/table_do_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ impl FuseTable {
// TODO we need a configuration to specify the unit of dequeue operation
let bite_size = 1;
let iter = {
let ctx = ctx.clone();
std::iter::from_fn(move || match ctx.clone().try_get_partitions(bite_size) {
Err(_) => None,
Ok(parts) if parts.is_empty() => None,
Expand Down
2 changes: 1 addition & 1 deletion query/src/datasources/table/memory/memory_table_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub struct MemoryTableStream {
impl MemoryTableStream {
pub fn try_create(ctx: DatabendQueryContextRef, blocks: Vec<DataBlock>) -> Result<Self> {
Ok(Self {
ctx: ctx.clone(),
ctx,
block_index: 0,
block_ranges: vec![],
blocks,
Expand Down
2 changes: 1 addition & 1 deletion query/src/datasources/table_func/numbers_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub struct NumbersStream {
impl NumbersStream {
pub fn try_create(ctx: DatabendQueryContextRef, schema: DataSchemaRef) -> Result<Self> {
Ok(Self {
ctx: ctx.clone(),
ctx,
schema,
block_index: 0,
blocks: vec![],
Expand Down

0 comments on commit d3f9b47

Please sign in to comment.