From abe2e25071efdb5470e9f5ac840e073285f00bb7 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 26 Apr 2024 06:36:24 +0000 Subject: [PATCH] automatic cargo CI changes --- src/config/mod.rs | 3 +-- src/error.rs | 4 ++-- src/serverapi/forgejo.rs | 8 -------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index 9e82373..dbede01 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -208,8 +208,7 @@ impl Version { panic!("{err:?}"); } } - - }, + } } } } diff --git a/src/error.rs b/src/error.rs index 44ed537..991d1e0 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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, } diff --git a/src/serverapi/forgejo.rs b/src/serverapi/forgejo.rs index 722e84e..6dcc2c5 100644 --- a/src/serverapi/forgejo.rs +++ b/src/serverapi/forgejo.rs @@ -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,