Skip to content

Commit

Permalink
fix: result types
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy-lmao committed Jun 6, 2024
1 parent 15817c5 commit b4aaff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqlx-postgres/src/types/cube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ impl<'q> Encode<'q, Postgres> for PgCube {
Some(PgTypeInfo::with_name("cube"))
}

fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull {
let _ = &self.serialize(buf);
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> Result<IsNull, BoxDynError> {
&self.serialize(buf)?;

IsNull::No
Ok(IsNull::No)
}
}

Expand Down

0 comments on commit b4aaff6

Please sign in to comment.