automatic cargo CI changes

This commit is contained in:
PlexSheep 2024-04-26 06:36:24 +00:00 committed by github-actions[bot]
parent bf2b9c6d08
commit abe2e25071
3 changed files with 3 additions and 12 deletions

View File

@ -208,8 +208,7 @@ impl Version {
panic!("{err:?}");
}
}
},
}
}
}
}

View File

@ -33,7 +33,7 @@ pub enum ServerApiError {
#[error(transparent)]
ReqwestErr(#[from] reqwest::Error),
#[error(transparent)]
ForgejoApiError(#[from] forgejo_api::ForgejoError)
ForgejoApiError(#[from] forgejo_api::ForgejoError),
}
#[derive(Error, Debug)]
@ -66,5 +66,5 @@ pub enum ConfigError {
#[error("An endpoint was set for an ApiType that does not require one")]
EndpointSetButNotNeeded,
#[error("No endpoint was set for an ApiType that requires one")]
NoEndpointSet
NoEndpointSet,
}

View File

@ -1,5 +1,3 @@
use std::str::FromStr;
use crate::{
config::{Api, Config},
error::*,
@ -7,12 +5,6 @@ use crate::{
};
use async_trait::async_trait;
use forgejo_api;
use libpt::log::debug;
use reqwest::{
header::{HeaderMap, HeaderValue},
Client, Url,
};
use serde_json;
pub struct Forgejo {
cfg: Api,