Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eirenik0 committed Jul 20, 2024
1 parent c747947 commit e517719
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,37 @@ use derive_more::{Display, Error};
#[derive(Debug, Display, Error)]
pub enum Error {
/// Performing HTTP request failed itself.
#[display(fmt = "Failed to perform HTTP request: {}", _0)]
#[display(fmt = "Failed to perform HTTP request: {_0}")]
RequestFailed(reqwest::Error),

/// [`GstClient`] responded with a bad [`StatusCode`].
///
/// [`StatusCode`]: reqwest::StatusCode
/// [`GstClient`]: crate::GstClient
#[display(fmt = "API responded with bad status: {}", _0)]
#[display(fmt = "API responded with bad status: {_0}")]
BadStatus(#[error(not(source))] reqwest::StatusCode),

/// [`GstClient`] responded with a bad body, which cannot be deserialized.
///
/// [`GstClient`]: crate::GstClient
#[display(fmt = "Failed to decode API response: {}", _0)]
#[display(fmt = "Failed to decode API response: {_0}")]
BadBody(reqwest::Error),

/// Failed to build [`GstClient`] client because incorrect base Url
///
/// [`GstClient`]: crate::GstClient
#[display(fmt = "Failed to parse base URL: {}", _0)]
#[display(fmt = "Failed to parse base URL: {_0}")]
IncorrectBaseUrl(url::ParseError),

/// Failed to create [`GstClient`] API Url
///
/// [`GstClient`]: crate::GstClient
#[display(fmt = "Failed to parse URL: {}", _0)]
#[display(fmt = "Failed to parse URL: {_0}")]
IncorrectApiUrl(url::ParseError),

/// Failed to process request on [GStD] side.
///
/// [GStD]: https://developer.ridgerun.com/wiki/index.php/GStreamer_Daemon
#[display(fmt = "Failed to process request: {}", _0)]
#[display(fmt = "Failed to process request: {_0}")]
GstdError(ResponseCode),
}

0 comments on commit e517719

Please sign in to comment.