Skip to content

Commit bb67159

Browse files
NicolappsConvex, Inc.
authored andcommitted
Make BackendState Copy (#41768)
GitOrigin-RevId: fa00beb45637499562cf761ccb668f3c917bf721
1 parent 06886d0 commit bb67159

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/common/src/types/backend_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[derive(Clone, Debug, PartialEq, strum::EnumString, strum::Display)]
1+
#[derive(Clone, Copy, Debug, PartialEq, strum::EnumString, strum::Display)]
22
#[strum(serialize_all = "snake_case")]
33
#[cfg_attr(any(test, feature = "testing"), derive(proptest_derive::Arbitrary))]
44
/// Represents the different states a backend can be in.

crates/isolate/src/tests/backend_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async fn test_http_action_helper(
135135
error_message: &str,
136136
) -> anyhow::Result<()> {
137137
let t = http_action_udf_test(rt).await?;
138-
toggle_backend_state(&t.database, backend_state.clone()).await?;
138+
toggle_backend_state(&t.database, backend_state).await?;
139139
let (http_response_sender, _http_response_receiver) = mpsc::unbounded_channel();
140140
let result = t
141141
.raw_http_action(

0 commit comments

Comments
 (0)