Skip to content

Commit 567f4c2

Browse files
Update uuid requirement from 0.8 to 1.0 (#50)
* Update uuid requirement from 0.8 to 1.0 Updates the requirements on [uuid](https://github.com/uuid-rs/uuid) to permit the latest version. - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](uuid-rs/uuid@0.8.0...1.0.0) --- updated-dependencies: - dependency-name: uuid dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix uuid breaking change Change-Id: I36e8c7f69ef34bf42f1623f1c1d3823b85b27aec Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: wangfenjin <[email protected]>
1 parent 550c96e commit 567f4c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ byteorder = { version = "1.3", features = ["i128"], optional = true }
4444
fallible-iterator = "0.2"
4545
fallible-streaming-iterator = "0.1"
4646
memchr = "2.3"
47-
uuid = { version = "0.8", optional = true }
47+
uuid = { version = "1.0", optional = true }
4848
smallvec = "1.6.1"
4949
cast = { version = "0.3", features = ["std"] }
5050
arrow = { version = "12", default-features = false, features = ["prettyprint"] }
@@ -57,7 +57,7 @@ doc-comment = "0.3"
5757
tempfile = "3.1.0"
5858
lazy_static = "1.4"
5959
regex = "1.3"
60-
uuid = { version = "0.8", features = ["v4"] }
60+
uuid = { version = "1.0", features = ["v4"] }
6161
unicase = "2.6.0"
6262
rand = "0.8.3"
6363
tempdir = "0.3.7"

src/types/from_sql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl FromSql for uuid::Uuid {
232232
.and_then(|bytes| {
233233
uuid::Builder::from_slice(bytes).map_err(|_| FromSqlError::InvalidUuidSize(bytes.len()))
234234
})
235-
.map(|mut builder| builder.build()),
235+
.map(|builder| builder.into_uuid()),
236236
_ => Err(FromSqlError::InvalidType),
237237
}
238238
}

0 commit comments

Comments
 (0)