1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #6161 from paolobarbolini/drop-conv

chore(deps): drop conv dev-dependency
This commit is contained in:
Ben Wiederhake 2024-03-31 23:39:49 +02:00 committed by GitHub
commit fb0c904b07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 20 deletions

16
Cargo.lock generated
View file

@ -363,15 +363,6 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2"
[[package]]
name = "conv"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ff10625fd0ac447827aa30ea8b861fead473bb60aeb73af6c1c58caf0d1299"
dependencies = [
"custom_derive",
]
[[package]]
name = "core-foundation-sys"
version = "0.8.3"
@ -386,7 +377,6 @@ dependencies = [
"clap",
"clap_complete",
"clap_mangen",
"conv",
"filetime",
"glob",
"hex-literal",
@ -687,12 +677,6 @@ dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "custom_derive"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef8ae57c4978a2acd8b869ce6b9ca1dfe817bff704c220209fdef2c0b75a01b9"
[[package]]
name = "data-encoding"
version = "2.5.0"

View file

@ -477,7 +477,6 @@ yes = { optional = true, version = "0.0.26", package = "uu_yes", path = "src/uu/
[dev-dependencies]
chrono = { workspace = true }
conv = "0.3"
filetime = { workspace = true }
glob = { workspace = true }
libc = { workspace = true }

View file

@ -154,9 +154,7 @@ fn test_cli_args() {
#[test]
fn test_random() {
use conv::prelude::ValueFrom;
let log_num_primes = f64::value_from(NUM_PRIMES).unwrap().log2().ceil();
let log_num_primes = f64::from(u32::try_from(NUM_PRIMES).unwrap()).log2().ceil();
let primes = Sieve::primes().take(NUM_PRIMES).collect::<Vec<u64>>();
let rng_seed = SystemTime::now()