Skip to content

custom-set: Added template to the stub file#605

Merged
coriolinus merged 1 commit intoexercism:masterfrom
ZapAnton:custom_set_template
Aug 8, 2018
Merged

custom-set: Added template to the stub file#605
coriolinus merged 1 commit intoexercism:masterfrom
ZapAnton:custom_set_template

Conversation

@ZapAnton
Copy link
Copy Markdown
Contributor

@ZapAnton ZapAnton commented Aug 6, 2018

Contributes to #551

Copy link
Copy Markdown
Member

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for doing this. I'll plan to merge this on Wednesday.

Comment thread exercises/custom-set/src/lib.rs Outdated

pub fn is_disjoint(&self, other: &Self) -> bool {
unimplemented!(
"Determine if the CustomSet struct and othe struct '{:?}' are disjoint.",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spotted a typo othe struct should probably be the other struct. To reduce the noise, I would amend the fix to
the initial commit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot! I missed that. Yes, please amend that into the single commit in this PR.

@ZapAnton ZapAnton force-pushed the custom_set_template branch from 0a4f51a to 1677ad2 Compare August 7, 2018 05:59
@ZapAnton
Copy link
Copy Markdown
Contributor Author

ZapAnton commented Aug 7, 2018

Done.
I should really find some grammar check plugin for Vim, the amount of typos in the PRs is embarrassing...

@coriolinus coriolinus merged commit 87ded6b into exercism:master Aug 8, 2018
@ZapAnton ZapAnton deleted the custom_set_template branch August 8, 2018 20:29
phantom: PhantomData<T>,
}

impl<T: Debug> CustomSet<T> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK to add <T: Debug> here, since a T is used in so many unimplemented messages? Or should it be left out?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with the Debug trait bound seems to appear in a lot of exercises. Instead of having separate discussion in every PR, would you mind creating an issue about it? So that there would be one fixed solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants