Skip to content

Commit

Permalink
possible workaround for launchbadge#3039
Browse files Browse the repository at this point in the history
  • Loading branch information
koeninger-ironlight committed Oct 18, 2024
1 parent 92a0d9e commit 7868b1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sqlx-mysql/src/types/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ impl Decode<'_, MySql> for Uuid {
// construct a Uuid from the returned bytes
Uuid::from_slice(bytes).map_err(Into::into)
} else {
// delegate to the &str type to decode from MySQL
let text = <&str as Decode<MySql>>::decode(value)?;
let text = std::str::from_utf8(bytes)?;

// parse a UUID from the text
Uuid::parse_str(text)
Expand Down

0 comments on commit 7868b1f

Please sign in to comment.