Skip to content

Commit df8b4cf

Browse files
committed
upgrade uuid crate to version 1; bump our version to 0.4.0
1 parent 8257d06 commit df8b4cf

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog
22

3+
## [0.4.0] - 2022-08-22
4+
5+
- Improve how `CHAR`, `BINARY`, and `MEDIUMBLOB` columns are handled (thanks @yonran in #2)
6+
- Upgrade `uuid` dependency to version 1
7+
38
## [0.3.2] - 2022-01-18
49

510
- Improve how `serde` is imported

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mysql_binlog"
3-
version = "0.3.2"
3+
version = "0.4.0"
44
authors = ["James Brown <[email protected]>"]
55
description = "Parser for the MySQL binlog format"
66
documentation = "https://docs.rs/mysql_binlog"
@@ -12,7 +12,7 @@ edition = "2018"
1212

1313
[dependencies]
1414
byteorder = "1"
15-
uuid = "0.8"
15+
uuid = "1"
1616
base64 = "0.13"
1717
thiserror = "1.0"
1818
serde_json = "1"

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ impl serde::Serialize for Gtid {
4444
where
4545
S: serde::Serializer,
4646
{
47-
let serialized = format!("{}:{}", self.0.to_hyphenated(), self.1);
47+
let serialized = format!("{}:{}", self.0.hyphenated(), self.1);
4848
serializer.serialize_str(&serialized)
4949
}
5050
}
5151

5252
impl ToString for Gtid {
5353
fn to_string(&self) -> String {
54-
format!("{}:{}", self.0.to_hyphenated(), self.1)
54+
format!("{}:{}", self.0.hyphenated(), self.1)
5555
}
5656
}
5757

0 commit comments

Comments
 (0)