Skip to content

Commit

Permalink
[skip ci] fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
proudmuslim-dev committed Feb 21, 2022
1 parent f563df8 commit f6a7b4c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions octocat-rs/src/github/http.rs
Expand Up @@ -9,9 +9,7 @@ use serde::{de::DeserializeOwned, Serialize};
use tokio::time::Duration;

#[cfg(feature = "workers")]
use worker::{Fetch, Request, Method};
use worker::RequestInit;
use worker::ResponseBody::Body;
use worker::{Fetch, Method, Request, RequestInit, ResponseBody::Body};

use github_rest::{
methods::prelude::{EndPoints, Methods},
Expand Down Expand Up @@ -144,9 +142,9 @@ impl github_rest::Requester for HttpClient {
#[cfg(feature = "workers")]
/// Returns the API response as a [`String`].
async fn raw_req<T, V>(&self, url: EndPoints, query: Option<&T>, body: Option<V>) -> Result<String, GithubRestError>
where
T: Serialize + ?Sized + Send + Sync,
V: Into<Body> + Send,
where
T: Serialize + ?Sized + Send + Sync,
V: Into<Body> + Send,
{
let path = format!("https://api.github.com{}", url.path());

Expand Down

0 comments on commit f6a7b4c

Please sign in to comment.