Cargo: replace hex with stdlib fmt

This commit is contained in:
zimbatm 2021-02-23 09:11:00 +01:00
parent c1bb7d073c
commit 7881fdc210
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
3 changed files with 1 additions and 9 deletions

7
Cargo.lock generated
View File

@ -328,12 +328,6 @@ dependencies = [
"libc",
]
[[package]]
name = "hex"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35"
[[package]]
name = "ignore"
version = "0.4.17"
@ -823,7 +817,6 @@ dependencies = [
"criterion",
"either",
"filetime",
"hex",
"ignore",
"log",
"path-absolutize",

View File

@ -11,7 +11,6 @@ anyhow = "1.0"
console = "0.13"
either = "1.6.1"
filetime = "0.2"
hex = "0.4"
ignore = "0.4.17"
log = "0.4"
rayon = "1.5.0"

View File

@ -96,7 +96,7 @@ fn create_hash(treefmt_toml: &PathBuf) -> Result<String> {
}
};
let treefmt_hash = Sha1::digest(treefmt_str);
let result = hex::encode(treefmt_hash);
let result = format!("{:x}", treefmt_hash);
let manifest_toml = format!("{}.toml", result);
Ok(manifest_toml)
}