From fa0fc7a4e2d3e7d25dcc02206a543045b9b03291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ko=C5=82odziejczak?= <31549762+mrl5@users.noreply.github.com> Date: Sun, 16 Jul 2023 10:12:50 +0200 Subject: [PATCH] refactor(backend): alternative approach for sqlx ^0.7 upgrade (#1884) related to * https://github.com/launchbadge/sqlx/pull/2617#issuecomment-1636808249 * https://github.com/launchbadge/sqlx/pull/2617#issuecomment-1637005378 --- backend/windmill-common/src/scripts.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/windmill-common/src/scripts.rs b/backend/windmill-common/src/scripts.rs index 38612d3822..318071ab43 100644 --- a/backend/windmill-common/src/scripts.rs +++ b/backend/windmill-common/src/scripts.rs @@ -57,7 +57,6 @@ pub struct ScriptHash(pub i64); #[derive(PartialEq)] #[cfg_attr(feature = "sqlx", derive(sqlx::Type))] -#[cfg_attr(feature = "sqlx", sqlx(transparent, no_pg_array))] pub struct ScriptHashes(pub Vec); impl Display for ScriptHash { @@ -91,7 +90,7 @@ impl Serialize for ScriptHashes { { let mut seq = serializer.serialize_seq(Some(self.0.len()))?; for element in &self.0 { - seq.serialize_element(&ScriptHash(*element))?; + seq.serialize_element(element)?; } seq.end() }