Skip to content

Commit

Permalink
Merge pull request #5 from DanGould/derive-debug
Browse files Browse the repository at this point in the history
Derive Debug
  • Loading branch information
Kixunil authored Jul 31, 2022
2 parents ac6b1dc + 91d11ce commit 6a617b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub use ser::{SerializeParams};
/// This struct represents all fields of BIP21 URI with the ability to add more extra fields using
/// the `extras` field. By default there are no extra fields so an empty implementation is used.
#[non_exhaustive]
#[derive(Debug)]
pub struct Uri<'a, Extras = NoExtras> {
/// The address provided in the URI.
///
Expand Down Expand Up @@ -112,7 +113,7 @@ impl<'a, T> Uri<'a, T> {
/// without allocation.
/// When constructing [`Uri`] to be displayed you may use `From<S>` where `S` is one of various
/// stringly types. The conversion is always cheap.
#[derive(Clone)]
#[derive(Debug, Clone)]
pub struct Param<'a>(ParamInner<'a>);

impl<'a> Param<'a> {
Expand Down Expand Up @@ -244,7 +245,7 @@ impl<'a> TryFrom<Param<'a>> for Cow<'a, str> {
}
}

#[derive(Clone)]
#[derive(Debug, Clone)]
enum ParamInner<'a> {
EncodedBorrowed(PercentDecode<'a>),
UnencodedBytes(Cow<'a, [u8]>),
Expand Down

0 comments on commit 6a617b2

Please sign in to comment.