Mastodon::new now wraps Mastodon::new_with_client

This commit is contained in:
baummarten 2023-01-14 20:06:55 +01:00 committed by Scott Boggs
parent 72d158513c
commit d94bcd45d2
1 changed files with 1 additions and 6 deletions

View File

@ -50,12 +50,7 @@ impl<'a> Registration<'a> {
/// let registration = Registration::new("https://botsin.space");
/// ```
pub fn new<I: Into<String>>(base: I) -> Self {
Registration {
base: base.into(),
client: Client::new(),
app_builder: AppBuilder::new(),
force_login: false,
}
Registration::new_with_client(base, Client::new())
}
/// Construct a new registration process to the instance of the `base` url,