spenserblack / github-stats-rs

A tool for using Github's API
Apache License 2.0
1 stars 5 forks source link

Return error when required values are None #5

Closed spenserblack closed 5 years ago

spenserblack commented 5 years ago

See TODO in search.rs for fn search.

When required values are None, a request will still be attempted. It would be preferable if the user could be informed that the required values are missing before a request is made, wasting the user's time.

This should only be possible if the user runs Search::default(), so this could alternatively be fixed by removing implementation of Default (this would make the Option<String>s unnecessary, too, since they could just be Strings).

spenserblack commented 5 years ago

Closed by #14