Skip to content

Commit

Permalink
Auto merge of #2256 - JohnTitor:hex, r=locks
Browse files Browse the repository at this point in the history
Update hex to 0.4

Update hex to 0.4, API is changed, no extra dependencies change.
/cc #1265
r? @jtgeibel
  • Loading branch information
bors committed Mar 7, 2020
2 parents f17f2dd + 5e177f3 commit fd63704
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ openssl = "0.10.13"
oauth2 = "2.0.0"
log = "0.4"
env_logger = "0.7"
hex = "0.3"
hex = "0.4"
htmlescape = "0.3.1"
license-exprs = "^1.4"
dotenv = "0.15"
Expand Down
3 changes: 1 addition & 2 deletions src/controllers/krate/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ pub fn publish(req: &mut dyn Request) -> AppResult<Response> {
.uploader
.upload_crate(req, &krate, maximums, vers)?;

let mut hex_cksum = String::new();
cksum.write_hex(&mut hex_cksum)?;
let hex_cksum = cksum.encode_hex::<String>();

// Register this crate in our local git repo.
let git_crate = git::Crate {
Expand Down

0 comments on commit fd63704

Please sign in to comment.