netdoc: Use a dev-dependency on anyhow to fix a doc example

This commit is contained in:
Nick Mathewson 2023-06-22 13:42:40 -04:00
parent 3ccec0b04a
commit 90f653f582
3 changed files with 3 additions and 1 deletions

1
Cargo.lock generated
View File

@ -4636,6 +4636,7 @@ name = "tor-netdoc"
version = "0.8.0"
dependencies = [
"amplify",
"anyhow",
"base64ct",
"bitflags 2.3.1",
"cipher",

View File

@ -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"

View File

@ -218,7 +218,7 @@ impl HsDesc {
/// let hsdesc = unchecked_decrypted_desc
/// .check_valid_at(&timestamp)?
/// .check_signature()?;
/// # Ok::<(), Error>(())
/// # Ok::<(), anyhow::Error>(())
/// ```
pub fn parse(
input: &str,