Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Nordam Suadicani committed Oct 29, 2024
1 parent 477b4b8 commit 205f5fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend-rust/src/graphql_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ mod monitor {

/// All the errors that may be produced by the GraphQL API.
///
/// Note that `async_graphql` requires this to be `Clone`, as it is used as a return type in queries.
/// However, some of the underlying error types are not `Clone`, so we wrap those in `Arc`s to make them `Clone`.
/// Note that `async_graphql` requires this to be `Clone`, as it is used as a
/// return type in queries. However, some of the underlying error types are not
/// `Clone`, so we wrap those in `Arc`s to make them `Clone`.
#[derive(Debug, thiserror::Error, Clone)]
enum ApiError {
#[error("Could not find resource")]
Expand Down

0 comments on commit 205f5fc

Please sign in to comment.