netdoc: Use a dev-dependency on anyhow to fix a doc example
This commit is contained in:
parent
3ccec0b04a
commit
90f653f582
|
@ -4636,6 +4636,7 @@ name = "tor-netdoc"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"amplify",
|
"amplify",
|
||||||
|
"anyhow",
|
||||||
"base64ct",
|
"base64ct",
|
||||||
"bitflags 2.3.1",
|
"bitflags 2.3.1",
|
||||||
"cipher",
|
"cipher",
|
||||||
|
|
|
@ -117,6 +117,7 @@ weak-table = "0.3.0"
|
||||||
zeroize = "1"
|
zeroize = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
anyhow = "1.0.23"
|
||||||
hex-literal = "0.4"
|
hex-literal = "0.4"
|
||||||
itertools = "0.10.1"
|
itertools = "0.10.1"
|
||||||
serde_json = "1.0.50"
|
serde_json = "1.0.50"
|
||||||
|
|
|
@ -218,7 +218,7 @@ impl HsDesc {
|
||||||
/// let hsdesc = unchecked_decrypted_desc
|
/// let hsdesc = unchecked_decrypted_desc
|
||||||
/// .check_valid_at(×tamp)?
|
/// .check_valid_at(×tamp)?
|
||||||
/// .check_signature()?;
|
/// .check_signature()?;
|
||||||
/// # Ok::<(), Error>(())
|
/// # Ok::<(), anyhow::Error>(())
|
||||||
/// ```
|
/// ```
|
||||||
pub fn parse(
|
pub fn parse(
|
||||||
input: &str,
|
input: &str,
|
||||||
|
|
Loading…
Reference in New Issue