generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
bf2b9c6d08
commit
abe2e25071
|
@ -208,8 +208,7 @@ impl Version {
|
|||
panic!("{err:?}");
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue