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"
|
||||
dependencies = [
|
||||
"amplify",
|
||||
"anyhow",
|
||||
"base64ct",
|
||||
"bitflags 2.3.1",
|
||||
"cipher",
|
||||
|
|
|
@ -117,6 +117,7 @@ weak-table = "0.3.0"
|
|||
zeroize = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
anyhow = "1.0.23"
|
||||
hex-literal = "0.4"
|
||||
itertools = "0.10.1"
|
||||
serde_json = "1.0.50"
|
||||
|
|
|
@ -218,7 +218,7 @@ impl HsDesc {
|
|||
/// let hsdesc = unchecked_decrypted_desc
|
||||
/// .check_valid_at(×tamp)?
|
||||
/// .check_signature()?;
|
||||
/// # Ok::<(), Error>(())
|
||||
/// # Ok::<(), anyhow::Error>(())
|
||||
/// ```
|
||||
pub fn parse(
|
||||
input: &str,
|
||||
|
|
Loading…
Reference in New Issue