Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Enable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gifnksm committed Dec 28, 2014
1 parent 18b552e commit f2e7498
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/tweet.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#![warn(bad_style,
unused, unused_extern_crates, unused_import_braces,
unused_qualifications, unused_results, unused_typecasts)]

extern crate "twitter-api" as twitter;
extern crate "rustc-serialize" as rustc_serialize;
extern crate "oauth-client" as oauth;
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#![warn(bad_style, missing_docs,
unused, unused_extern_crates, unused_import_braces,
unused_qualifications, unused_results, unused_typecasts)]

extern crate "oauth-client" as oauth;

use std::collections::HashMap;
Expand Down Expand Up @@ -45,5 +49,5 @@ pub fn get_access_token(consumer: &Token, request: &Token, pin: &str) -> Token<'
pub fn tweet(consumer: &Token, access: &Token, status: &str) {
let mut param = HashMap::new();
let _ = param.insert("status".into_cow(), status.into_cow());
oauth::post(api::STATUSES_UPDATE, consumer, Some(access), Some(&param));
let _ = oauth::post(api::STATUSES_UPDATE, consumer, Some(access), Some(&param));
}

0 comments on commit f2e7498

Please sign in to comment.