Skip to content

Commit

Permalink
address unused code warnings (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored Apr 1, 2024
1 parent 5eb2598 commit fbf04dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/endpoints/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ mod refresh {
pub access_token: String,

/// The id of the client
pub client_id: String,
#[serde(rename = "client_id")]
pub _client_id: String,

/// time (in seconds) until the access token expires
pub expires_in: i64,
Expand All @@ -27,10 +28,12 @@ mod refresh {

/// The token type. currently the only supported token type is
/// "bearer_auth"

Check warning on line 30 in src/endpoints/auth.rs

View workflow job for this annotation

GitHub Actions / lint

item in documentation is missing backticks

warning: item in documentation is missing backticks --> src/endpoints/auth.rs:30:14 | 30 | /// "bearer_auth" | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown note: the lint level is defined here --> src/lib.rs:8:9 | 8 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::doc_markdown)]` implied by `#[warn(clippy::pedantic)]` help: try | 30 | /// "`bearer_auth`" | ~~~~~~~~~~~~~
pub token_type: String,
#[serde(rename = "token_type")]
pub _token_type: String,

/// The id of the current Monzo user
pub user_id: String,
#[serde(rename = "user_id")]
pub _user_id: String,
}

/// A request for new authentication tokens.
Expand Down

0 comments on commit fbf04dc

Please # to comment.