Skip to content

Commit c316f54

Browse files
goffrieConvex, Inc.
authored andcommitted
Update rust version to 2025-06-28 (#40286)
GitOrigin-RevId: 521527acbdd57eb696bc7506986a73582bd44e53
1 parent fe18fac commit c316f54

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ unused_extern_crates = "warn"
3939
await_holding_lock = "warn"
4040
await_holding_refcell_ref = "warn"
4141
large_enum_variant = "allow"
42+
manual_is_multiple_of = "allow"
4243
manual_map = "allow"
4344
new_without_default = "allow"
4445
op_ref = "allow"
4546
ptr_arg = "allow"
47+
result_large_err = "allow"
4648
single_match = "allow"
4749
too_many_arguments = "allow"
4850
type_complexity = "allow"

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly-2024-12-16"
2+
channel = "nightly-2025-06-28"

src/client/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl PyConvexClient {
139139
.unwrap();
140140

141141
// Block on the async function using the Tokio runtime.
142-
let client_id = format!("python-{}", version);
142+
let client_id = format!("python-{version}");
143143
let instance = rt.block_on(
144144
ConvexClientBuilder::new(deployment_url)
145145
.with_client_id(&client_id)
@@ -266,7 +266,7 @@ impl UDFLogVisitor {
266266
// Extracts a BTreeMap from our log line
267267
impl Visit for UDFLogVisitor {
268268
fn record_debug(&mut self, field: &Field, value: &dyn std::fmt::Debug) {
269-
let s = format!("{:?}", value);
269+
let s = format!("{value:?}");
270270
self.fields.insert(field.name().to_string(), s);
271271
}
272272
}
@@ -279,7 +279,7 @@ impl<S: Subscriber> Layer<S> for ConvexLoggingLayer {
279279
event.record(&mut visitor);
280280
let mut log_writer = io::stdout();
281281
if let Some(message) = visitor.fields.get("message") {
282-
writeln!(log_writer, "{}", message).unwrap();
282+
writeln!(log_writer, "{message}").unwrap();
283283
}
284284
}
285285
}

src/query_result.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn value_to_py(py: Python<'_>, v: convex::Value) -> PyObject {
5454
.expect("Couldn't import ConvexInt64 from _convex.int64");
5555
let obj: PyObject = int_64_class
5656
.call((val,), None)
57-
.unwrap_or_else(|_| panic!("Couldn't construct ConvexInt64() from {:?}", val))
57+
.unwrap_or_else(|_| panic!("Couldn't construct ConvexInt64() from {val:?}"))
5858
.into();
5959
obj
6060
},
@@ -135,8 +135,7 @@ pub fn py_to_value(py_val: Borrowed<'_, '_, PyAny>) -> PyResult<convex::Value> {
135135
convex::Value::String(s) => map.insert(s, inner_value),
136136
_ => {
137137
return Err(PyException::new_err(format!(
138-
"Bad key for Convex object: {:?}",
139-
key
138+
"Bad key for Convex object: {key:?}"
140139
)))
141140
},
142141
};

0 commit comments

Comments
 (0)