Change Mastodon::from_data to just Mastodon::from

This commit is contained in:
Paul Woolcock
2018-08-22 06:48:56 -04:00
parent 1847160369
commit cc083e335e
4 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ use serde::Deserialize;
/// # redirect: "".into(),
/// # token: "".into(),
/// # };
/// let client = Mastodon::from_data(data);
/// let client = Mastodon::from(data);
/// let statuses = client.statuses("user-id", None)?;
/// for status in statuses.items_iter() {
/// // do something with `status`