Upgrade sequoia-wot.
This commit is contained in:
parent
4d178c8768
commit
5e5be69dab
16
Cargo.lock
generated
16
Cargo.lock
generated
@ -1078,16 +1078,6 @@ dependencies = [
|
|||||||
"syn 2.0.66",
|
"syn 2.0.66",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "enumber"
|
|
||||||
version = "0.3.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0e94171909dd76d846c1ee9d14704de157cf77d01560c883f74ddd1f74c5bdbf"
|
|
||||||
dependencies = [
|
|
||||||
"quote",
|
|
||||||
"syn 2.0.66",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "env_logger"
|
name = "env_logger"
|
||||||
version = "0.10.2"
|
version = "0.10.2"
|
||||||
@ -3598,18 +3588,16 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sequoia-wot"
|
name = "sequoia-wot"
|
||||||
version = "0.12.0"
|
version = "0.13.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "486e5d22de6407e3f8b57104da7d1e34d60fc4101c2af0c49d1435542c0b3ddb"
|
checksum = "80ee318a58109d3bc3ce267fe4dcb3bfdf22d64b2fded73573a5ad75acc03ba8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
"crossbeam",
|
"crossbeam",
|
||||||
"enumber",
|
|
||||||
"num_cpus",
|
"num_cpus",
|
||||||
"sequoia-cert-store",
|
"sequoia-cert-store",
|
||||||
"sequoia-openpgp",
|
"sequoia-openpgp",
|
||||||
"sequoia-policy-config",
|
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ once_cell = "1.17"
|
|||||||
reqwest = { version = "0.11.27", features = ["hickory-dns"] }
|
reqwest = { version = "0.11.27", features = ["hickory-dns"] }
|
||||||
sequoia-cert-store = "0.6.0"
|
sequoia-cert-store = "0.6.0"
|
||||||
sequoia-keystore = { version = ">=0.5, <0.7" }
|
sequoia-keystore = { version = ">=0.5, <0.7" }
|
||||||
sequoia-wot = { version = "0.12", default-features = false }
|
sequoia-wot = { version = "0.13", default-features = false }
|
||||||
tempfile = "3.1"
|
tempfile = "3.1"
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
tokio = { version = "1.13.1" }
|
tokio = { version = "1.13.1" }
|
||||||
|
@ -298,7 +298,7 @@ pub fn authenticate<'store, 'rstore>(
|
|||||||
|
|
||||||
// Sort so the shortest paths come first.
|
// Sort so the shortest paths come first.
|
||||||
let mut paths: Vec<_> = paths
|
let mut paths: Vec<_> = paths
|
||||||
.into_values()
|
.iter()
|
||||||
.map(|(path, _amount)| path)
|
.map(|(path, _amount)| path)
|
||||||
.collect();
|
.collect();
|
||||||
paths.sort_by_key(|path| path.len());
|
paths.sort_by_key(|path| path.len());
|
||||||
@ -311,7 +311,7 @@ pub fn authenticate<'store, 'rstore>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
paths.into_iter()
|
paths.into_iter()
|
||||||
.map(|p| (p, 0))
|
.map(|p| (p.clone(), 0))
|
||||||
.collect::<Vec<(wot::Path, usize)>>()
|
.collect::<Vec<(wot::Path, usize)>>()
|
||||||
} else {
|
} else {
|
||||||
let paths = n.authenticate(
|
let paths = n.authenticate(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user