Version 0.9, Changed API to use Cow<'static, str>

Added documentation to Error enum
This commit is contained in:
Aaron Power
2017-11-09 13:56:50 +00:00
parent b6d350f29e
commit f8aa32f003
3 changed files with 47 additions and 30 deletions
+5 -5
View File
@@ -15,11 +15,11 @@ fn upload_photo() {
fn run() -> mammut::Result<()> {
let data = Data {
base: String::from(env::var("BASE").unwrap()),
client_id: String::from(env::var("CLIENT_ID").unwrap()),
client_secret: String::from(env::var("CLIENT_SECRET").unwrap()),
redirect: String::from(env::var("REDIRECT").unwrap()),
token: String::from(env::var("TOKEN").unwrap()),
base: env::var("BASE").unwrap().into(),
client_id: env::var("CLIENT_ID").unwrap().into(),
client_secret: env::var("CLIENT_SECRET").unwrap().into(),
redirect: env::var("REDIRECT").unwrap().into(),
token: env::var("TOKEN").unwrap().into(),
};
let mastodon = Mastodon::from_data(data);