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:?}");
|
panic!("{err:?}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ pub enum ServerApiError {
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
ReqwestErr(#[from] reqwest::Error),
|
ReqwestErr(#[from] reqwest::Error),
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
ForgejoApiError(#[from] forgejo_api::ForgejoError)
|
ForgejoApiError(#[from] forgejo_api::ForgejoError),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
|
@ -66,5 +66,5 @@ pub enum ConfigError {
|
||||||
#[error("An endpoint was set for an ApiType that does not require one")]
|
#[error("An endpoint was set for an ApiType that does not require one")]
|
||||||
EndpointSetButNotNeeded,
|
EndpointSetButNotNeeded,
|
||||||
#[error("No endpoint was set for an ApiType that requires one")]
|
#[error("No endpoint was set for an ApiType that requires one")]
|
||||||
NoEndpointSet
|
NoEndpointSet,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
config::{Api, Config},
|
config::{Api, Config},
|
||||||
error::*,
|
error::*,
|
||||||
|
@ -7,12 +5,6 @@ use crate::{
|
||||||
};
|
};
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use forgejo_api;
|
use forgejo_api;
|
||||||
use libpt::log::debug;
|
|
||||||
use reqwest::{
|
|
||||||
header::{HeaderMap, HeaderValue},
|
|
||||||
Client, Url,
|
|
||||||
};
|
|
||||||
use serde_json;
|
|
||||||
|
|
||||||
pub struct Forgejo {
|
pub struct Forgejo {
|
||||||
cfg: Api,
|
cfg: Api,
|
||||||
|
|
Loading…
Reference in New Issue