Skip to content

Commit

Permalink
chore: [#639] add cargo dependency: hex_literal
Browse files Browse the repository at this point in the history
It allows simplifying the wasy we build InfoHashes from hex strings:

```rust
let info_hash = InfoHash(hex!("9c38422213e30bff212b30c360d26f9a02136422")); // # DevSkim: ignore DS173237
```
  • Loading branch information
josecelano committed Feb 1, 2024
1 parent 1b92b77 commit 661b521
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ url = "2.5.0"
tempfile = "3.9.0"
clap = { version = "4.4.18", features = ["derive", "env"]}
anyhow = "1.0.79"
hex-literal = "0.4.1"

[dev-dependencies]
criterion = { version = "0.5.1", features = ["async_tokio"] }
Expand Down

0 comments on commit 661b521

Please sign in to comment.