Skip to content

Commit

Permalink
chore: remove unused custom error type
Browse files Browse the repository at this point in the history
  • Loading branch information
SG60 committed Mar 22, 2024
1 parent 3ccccc2 commit 641d596
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ use axum::{
use mockall::automock;
use octocrab::params::repos::Commitish;
use serde::Deserialize;
use std::{
collections::HashMap,
default,
fmt::{Debug, Display},
sync::Arc,
};
use std::{collections::HashMap, default, fmt::Debug, sync::Arc};
use tower::ServiceBuilder;
use tower_http::trace::TraceLayer;
use tracing::{debug, info, instrument, trace};
Expand Down Expand Up @@ -294,18 +289,6 @@ trait GetSuccessfulCheckRuns: GetDataFromGitHub {

impl<T: ?Sized + GetDataFromGitHub> GetSuccessfulCheckRuns for T {}

#[derive(Debug)]
enum GetCheckRunsForGitRefError {
ClientFetchError,
NothingFound,
}
impl Display for GetCheckRunsForGitRefError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self)
}
}
impl std::error::Error for GetCheckRunsForGitRefError {}

#[cfg_attr(test, automock)]
#[async_trait]
trait GetDataFromGitHub: Send + Sync + Debug + 'static {
Expand Down

0 comments on commit 641d596

Please sign in to comment.