Skip to content

Commit

Permalink
remove cfg feature tags
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Tate <[email protected]>
  • Loading branch information
Ryanmtate committed Aug 28, 2024
1 parent d98d2a4 commit 915b922
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#[cfg(feature = "reqwest")]
use anyhow::Context;
use anyhow::Result;
use async_trait::async_trait;
Expand All @@ -16,11 +15,9 @@ pub(crate) fn base_request() -> http::request::Builder {
Request::builder().header("Prefer", "OID4VP-0.0.20")
}

#[cfg(feature = "reqwest")]
#[derive(Debug)]
pub struct ReqwestClient(reqwest::Client);

#[cfg(feature = "reqwest")]
impl ReqwestClient {
pub fn new() -> Result<Self> {
reqwest::Client::builder()
Expand All @@ -31,7 +28,6 @@ impl ReqwestClient {
}
}

#[cfg(feature = "reqwest")]
#[async_trait]
impl AsyncHttpClient for ReqwestClient {
async fn execute(&self, request: Request<Vec<u8>>) -> Result<Response<Vec<u8>>> {
Expand Down

0 comments on commit 915b922

Please sign in to comment.