Skip to content

Commit 5e177f3

Browse files
committed
Update hex to 0.4
1 parent f17f2dd commit 5e177f3

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ openssl = "0.10.13"
4141
oauth2 = "2.0.0"
4242
log = "0.4"
4343
env_logger = "0.7"
44-
hex = "0.3"
44+
hex = "0.4"
4545
htmlescape = "0.3.1"
4646
license-exprs = "^1.4"
4747
dotenv = "0.15"

src/controllers/krate/publish.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ pub fn publish(req: &mut dyn Request) -> AppResult<Response> {
192192
.uploader
193193
.upload_crate(req, &krate, maximums, vers)?;
194194

195-
let mut hex_cksum = String::new();
196-
cksum.write_hex(&mut hex_cksum)?;
195+
let hex_cksum = cksum.encode_hex::<String>();
197196

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

0 commit comments

Comments
 (0)