Users shouldn't have to parameterize their code unless they need to for tests

This commit is contained in:
Paul Woolcock
2018-08-27 13:23:21 -04:00
parent f8f8054c5c
commit e7005b0b6b
+1 -1
View File
@@ -13,7 +13,7 @@ const DEFAULT_REDIRECT_URI: &'static str = "urn:ietf:wg:oauth:2.0:oob";
/// Handles registering your mastodon app to your instance. It is recommended
/// you cache your data struct to avoid registering on every run.
pub struct Registration<'a, H: HttpSend> {
pub struct Registration<'a, H: HttpSend = HttpSender> {
base: String,
client: Client,
app_builder: AppBuilder<'a>,