Skip to content

Commit

Permalink
Token generation no longer mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed Sep 1, 2016
1 parent c67778e commit 0d81122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -91,7 +91,7 @@ impl ClientV1 {
}

/// Gets a token from the API.
pub fn token<S: AsRef<str>>(&mut self, app_id: S, secret: S) -> Result<AccessToken> {
pub fn token<S: AsRef<str>>(&self, app_id: S, secret: S) -> Result<AccessToken> {
match secret.as_ref().from_base64() {
Ok(b) => {
if b.len() == SECRET_LEN {
Expand Down

0 comments on commit 0d81122

Please sign in to comment.