chore: upgrade rust toolchain to 1.97.0 (#3643)

Bumps the pinned Rust toolchain from 1.95.0 to the latest stable
(1.97.0).

Rust 1.97's clippy adds `useless_borrows_in_formatting`, which flags a
redundant `&` in `format!`/`debug!` arguments in a few places. This PR
removes those to keep `cargo clippy` clean.

No behavior change; the MSRV (`rust-version = "1.91.0"`) is unchanged.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Will Jones
2026-07-31 16:40:58 -07:00
committed by GitHub
parent 05602ec7d5
commit 93354baf34
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.95.0"
channel = "1.97.0"
+3 -3
View File
@@ -264,7 +264,7 @@ pub fn compute_output_schema(
let field_name = ed
.dest_column
.clone()
.unwrap_or_else(|| format!("{}_embedding", &ed.source_column));
.unwrap_or_else(|| format!("{}_embedding", ed.source_column));
sb.push(Field::new(
field_name,
@@ -291,7 +291,7 @@ pub fn compute_embeddings_for_batch(
let dst_field_name = fld
.dest_column
.clone()
.unwrap_or_else(|| format!("{}_embedding", &fld.source_column));
.unwrap_or_else(|| format!("{}_embedding", fld.source_column));
let dst_field = Field::new(
dst_field_name,
@@ -315,7 +315,7 @@ impl<R: RecordBatchReader> WithEmbeddings<R> {
let field_name = ed
.dest_column
.clone()
.unwrap_or_else(|| format!("{}_embedding", &ed.source_column));
.unwrap_or_else(|| format!("{}_embedding", ed.source_column));
Ok(Field::new(
field_name,
func.dest_type()?.into_owned(),
+2 -2
View File
@@ -706,7 +706,7 @@ impl<S: HttpSend> RestfulLanceDbClient<S> {
.err_to_http(request_id.clone())?;
debug!(
"Received response for request_id={}: {:?}",
request_id, &response
request_id, response
);
Ok((request_id, response))
}
@@ -768,7 +768,7 @@ impl<S: HttpSend> RestfulLanceDbClient<S> {
Ok((status, response)) if status.is_success() => {
debug!(
"Received response for request_id={}: {:?}",
retry_counter.request_id, &response
retry_counter.request_id, response
);
return Ok((retry_counter.request_id, response));
}