Skip to content

Commit

Permalink
fix: clippy::too_long_first_doc_paragraph'
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Aug 29, 2024
1 parent 7d7b024 commit 3c50a07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ pub struct MethodResponse<T> {
pub description: Option<String>,
}

#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
/// \[…\] an unsuccessful request, `ok` equals false and the error is explained in the `description`.
/// Error on an unsuccessful request.
///
/// `ok` equals false and the error is explained in the `description`.
/// An Integer `error_code` field is also returned, but its contents are subject to change in the future.
/// Some errors may also have an optional field `parameters` of the type `ResponseParameters`, which can help to automatically handle the error.
///
/// See <https://core.telegram.org/bots/api#making-requests>
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct ErrorResponse {
/// Always false
pub ok: bool,
Expand Down

0 comments on commit 3c50a07

Please sign in to comment.