mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
Cargo: replace hex with stdlib fmt
This commit is contained in:
parent
c1bb7d073c
commit
7881fdc210
7
Cargo.lock
generated
7
Cargo.lock
generated
@ -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",
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user