Skip to content

Commit

Permalink
upgrade uuid crate to version 1; bump our version to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Roguelazer committed Aug 22, 2022
1 parent 8257d06 commit df8b4cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

## [0.4.0] - 2022-08-22

- Improve how `CHAR`, `BINARY`, and `MEDIUMBLOB` columns are handled (thanks @yonran in #2)
- Upgrade `uuid` dependency to version 1

## [0.3.2] - 2022-01-18

- Improve how `serde` is imported
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mysql_binlog"
version = "0.3.2"
version = "0.4.0"
authors = ["James Brown <[email protected]>"]
description = "Parser for the MySQL binlog format"
documentation = "https://docs.rs/mysql_binlog"
Expand All @@ -12,7 +12,7 @@ edition = "2018"

[dependencies]
byteorder = "1"
uuid = "0.8"
uuid = "1"
base64 = "0.13"
thiserror = "1.0"
serde_json = "1"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ impl serde::Serialize for Gtid {
where
S: serde::Serializer,
{
let serialized = format!("{}:{}", self.0.to_hyphenated(), self.1);
let serialized = format!("{}:{}", self.0.hyphenated(), self.1);
serializer.serialize_str(&serialized)
}
}

impl ToString for Gtid {
fn to_string(&self) -> String {
format!("{}:{}", self.0.to_hyphenated(), self.1)
format!("{}:{}", self.0.hyphenated(), self.1)
}
}

Expand Down

0 comments on commit df8b4cf

Please sign in to comment.