Skip to content

Commit

Permalink
refactor(backend): alternative approach for sqlx ^0.7 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mrl5 committed Jul 16, 2023
1 parent 72d0d8a commit 7596508
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/windmill-common/src/scripts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i64>);

impl Display for ScriptHash {
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 7596508

Please sign in to comment.