From df8b4cfa4ad8c22d701e3f318076805ac444770b Mon Sep 17 00:00:00 2001 From: James Brown Date: Mon, 22 Aug 2022 23:48:25 +0000 Subject: [PATCH] upgrade uuid crate to version 1; bump our version to 0.4.0 --- CHANGELOG.md | 5 +++++ Cargo.toml | 4 ++-- src/lib.rs | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83e9102..39a8fbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 97cd8df..2459628 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mysql_binlog" -version = "0.3.2" +version = "0.4.0" authors = ["James Brown "] description = "Parser for the MySQL binlog format" documentation = "https://docs.rs/mysql_binlog" @@ -12,7 +12,7 @@ edition = "2018" [dependencies] byteorder = "1" -uuid = "0.8" +uuid = "1" base64 = "0.13" thiserror = "1.0" serde_json = "1" diff --git a/src/lib.rs b/src/lib.rs index 76b3027..f3260e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) } }