Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive Debug #5

Merged
merged 1 commit into from
Jul 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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