Skip to content

Commit

Permalink
Merge pull request #32 from museun/privmsgbuilder-tagsbuilder
Browse files Browse the repository at this point in the history
Add Clone for TagsBuilder and Debug for PrivmsgBuilder
  • Loading branch information
museun committed Apr 24, 2023
2 parents 23c3227 + ffd710f commit bef7a05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl std::error::Error for PrivmsgBuilderError {
/// assert_eq!(pm.raw, expected);
/// # Ok::<(),Box<dyn std::error::Error>>(())
/// ```
#[derive(Default, Clone)]
#[derive(Default, Debug, Clone)]
pub struct PrivmsgBuilder {
tags: Option<Tags<'static>>,
sender: Option<Cow<'static, str>>,
Expand Down
2 changes: 1 addition & 1 deletion src/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<'a> Parse<'a> for Tags<'a> {
/// assert_eq!(tags.get("foo"), Some("bar"));
/// assert_eq!(tags.parsed::<usize>("baz"), Some(Ok(42)));
/// ```
#[derive(Default, Debug)]
#[derive(Default, Clone, Debug)]
pub struct TagsBuilder(HashMap<String, String>);

impl TagsBuilder {
Expand Down

0 comments on commit bef7a05

Please sign in to comment.