Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clean up unnecessay mut and dead code warnings #2

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions crates/core/src/kernel/snapshot/log_segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,6 @@ pub(super) async fn list_log_files(

#[cfg(test)]
pub(super) mod tests {
use std::str::FromStr;

use deltalake_test::utils::*;

use super::*;
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/operations/convert_to_delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl ConvertToDeltaBuilder {
}

/// Consume self into CreateBuilder with corresponding add actions, schemas and operation meta
async fn into_create_builder(mut self) -> Result<CreateBuilder, Error> {
async fn into_create_builder(self) -> Result<CreateBuilder, Error> {
// Use the specified log store. If a log store is not provided, create a new store from the specified path.
// Return an error if neither log store nor path is provided
let log_store = if let Some(log_store) = self.log_store {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/operations/merge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ async fn execute(
build_case(copy_when, copy_then)?,
));

let mut new_columns = {
let new_columns = {
let plan = projection.into_unoptimized_plan();
let mut fields: Vec<Expr> = plan
.schema()
Expand Down
6 changes: 0 additions & 6 deletions crates/gcp/tests/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ impl StorageIntegration for GcpIntegration {
}
}

impl GcpIntegration {
fn delete_bucket(&self) -> std::io::Result<ExitStatus> {
gs_cli::delete_bucket(self.bucket_name.clone())
}
}

/// small wrapper around google api
pub mod gs_cli {
use super::set_env_if_not_set;
Expand Down