Mastodon::new now wraps Mastodon::new_with_client
This commit is contained in:
parent
72d158513c
commit
d94bcd45d2
|
@ -50,12 +50,7 @@ impl<'a> Registration<'a> {
|
||||||
/// let registration = Registration::new("https://botsin.space");
|
/// let registration = Registration::new("https://botsin.space");
|
||||||
/// ```
|
/// ```
|
||||||
pub fn new<I: Into<String>>(base: I) -> Self {
|
pub fn new<I: Into<String>>(base: I) -> Self {
|
||||||
Registration {
|
Registration::new_with_client(base, Client::new())
|
||||||
base: base.into(),
|
|
||||||
client: Client::new(),
|
|
||||||
app_builder: AppBuilder::new(),
|
|
||||||
force_login: false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Construct a new registration process to the instance of the `base` url,
|
/// Construct a new registration process to the instance of the `base` url,
|
||||||
|
|
Loading…
Reference in New Issue