Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

address unused code warnings #98

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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 @@ -26,11 +27,13 @@
pub refresh_token: String,

/// 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
Loading