Skip to content

Commit

Permalink
fix: Use Method through reqwest which re-exports http anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Oct 11, 2023
1 parent 15a0746 commit 4dc20e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions object_store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ walkdir = "2"

# Cloud storage support
base64 = { version = "0.21", default-features = false, features = ["std"], optional = true }
http = { version = "0.2", default_features = false, optional = true }
hyper = { version = "0.14", default-features = false, optional = true }
quick-xml = { version = "0.30.0", features = ["serialize", "overlapped-lists"], optional = true }
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
Expand All @@ -65,7 +64,7 @@ tokio = { version = "1.25.0", features = ["sync", "macros", "rt", "time", "io-ut
nix = { version = "0.27.1", features = ["fs"] }

[features]
cloud = ["serde", "serde_json", "quick-xml", "dep:http", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"]
cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", "reqwest/json", "reqwest/stream", "chrono/serde", "base64", "rand", "ring"]
azure = ["cloud"]
gcp = ["cloud", "rustls-pemfile"]
aws = ["cloud"]
Expand Down
2 changes: 1 addition & 1 deletion object_store/src/aws/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl Signer for AmazonS3 {
/// ```
/// # async fn example() -> Result<(), Box<dyn std::error::Error>> {
/// # use object_store::{aws::AmazonS3Builder, path::Path, signer::Signer};
/// # use http::Method;
/// # use reqwest::Method;
/// # use std::time::Duration;
/// #
/// let region = "us-east-1";
Expand Down
2 changes: 1 addition & 1 deletion object_store/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use crate::{path::Path, Result};
use async_trait::async_trait;
use http::Method;
use reqwest::Method;
use std::{fmt, time::Duration};
use url::Url;

Expand Down

0 comments on commit 4dc20e6

Please sign in to comment.