Skip to content

Commit

Permalink
address clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel.eades committed Sep 5, 2024
1 parent d3dffd2 commit da3dbd4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"Monzo"
]
}
2 changes: 1 addition & 1 deletion src/endpoints/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod refresh {
pub refresh_token: String,

/// The token type. currently the only supported token type is
/// "bearer_auth"
/// `bearer_auth`
#[serde(rename = "token_type")]
pub _token_type: String,

Expand Down
7 changes: 4 additions & 3 deletions src/endpoints/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ pub struct Transaction {
pub decline_reason: Option<DeclineReason>,

/// Top-ups to an account are represented as transactions with a positive
/// amount and is_load = true. Other transactions such as refunds, reversals
/// or chargebacks may have a positive amount but is_load = false
/// amount and `is_load` = true. Other transactions such as refunds,
/// reversals or chargebacks may have a positive amount but `is_load` =
/// false
pub is_load: bool,

/// The timestamp at wich the transaction was settled
/// The timestamp at which the transaction was settled
///
/// This is `None` if the transaction is authorised, but not yet complete.
#[serde(deserialize_with = "empty_string_as_none")]
Expand Down

0 comments on commit da3dbd4

Please sign in to comment.