Skip to content

Commit

Permalink
Update uuid requirement from 0.8 to 1.0 (#50)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
dependabot[bot] and wangfenjin authored Apr 21, 2022
1 parent 550c96e commit 567f4c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ byteorder = { version = "1.3", features = ["i128"], optional = true }
fallible-iterator = "0.2"
fallible-streaming-iterator = "0.1"
memchr = "2.3"
uuid = { version = "0.8", optional = true }
uuid = { version = "1.0", optional = true }
smallvec = "1.6.1"
cast = { version = "0.3", features = ["std"] }
arrow = { version = "12", default-features = false, features = ["prettyprint"] }
Expand All @@ -57,7 +57,7 @@ doc-comment = "0.3"
tempfile = "3.1.0"
lazy_static = "1.4"
regex = "1.3"
uuid = { version = "0.8", features = ["v4"] }
uuid = { version = "1.0", features = ["v4"] }
unicase = "2.6.0"
rand = "0.8.3"
tempdir = "0.3.7"
Expand Down
2 changes: 1 addition & 1 deletion src/types/from_sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl FromSql for uuid::Uuid {
.and_then(|bytes| {
uuid::Builder::from_slice(bytes).map_err(|_| FromSqlError::InvalidUuidSize(bytes.len()))
})
.map(|mut builder| builder.build()),
.map(|builder| builder.into_uuid()),
_ => Err(FromSqlError::InvalidType),
}
}
Expand Down

0 comments on commit 567f4c2

Please sign in to comment.