From 0998661751be534e952c11831b6045dd1da59db8 Mon Sep 17 00:00:00 2001 From: Mariusz Klochowicz Date: Fri, 22 Oct 2021 11:06:28 +1030 Subject: [PATCH] Prefer automatic links in docs Automatic links (wrapped inside <>) are automatically turned into clickable links when you generate documentation --- cfd_protocol/src/interval/digit_decomposition.rs | 2 +- daemon/src/oracle.rs | 2 +- daemon/src/wallet.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cfd_protocol/src/interval/digit_decomposition.rs b/cfd_protocol/src/interval/digit_decomposition.rs index 69afb88..246982a 100644 --- a/cfd_protocol/src/interval/digit_decomposition.rs +++ b/cfd_protocol/src/interval/digit_decomposition.rs @@ -1,7 +1,7 @@ //! Utility functions to decompose numeric outcome values //! //! This code has been lifted from: -//! https://github.com/p2pderivatives/rust-dlc/blob/chore%2Ffactor-out-dlc-trie/dlc-trie/src/digit_decomposition.rs +//! /// Describes an interval that starts at `prefix || start` and terminates at `prefix || end`. struct PrefixInterval { diff --git a/daemon/src/oracle.rs b/daemon/src/oracle.rs index c95cfb6..aedcd72 100644 --- a/daemon/src/oracle.rs +++ b/daemon/src/oracle.rs @@ -279,7 +279,7 @@ pub struct Announcement { /// Identifier for an oracle event. /// /// Doubles up as the path of the URL for this event i.e. - /// https://h00.ooo/{id}. + /// {id}. pub id: BitMexPriceEventId, pub expected_outcome_time: OffsetDateTime, pub nonce_pks: Vec, diff --git a/daemon/src/wallet.rs b/daemon/src/wallet.rs index 2691411..639db0c 100644 --- a/daemon/src/wallet.rs +++ b/daemon/src/wallet.rs @@ -146,7 +146,7 @@ struct RpcError { code: i64, } -/// Bitcoin error codes: https://github.com/bitcoin/bitcoin/blob/97d3500601c1d28642347d014a6de1e38f53ae4e/src/rpc/protocol.h#L23 +/// Bitcoin error codes: pub enum RpcErrorCode { /// Transaction or block was rejected by network rules. Error code -27. RpcVerifyAlreadyInChain,