Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy committed Jun 7, 2024
1 parent adcc911 commit 07459d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ form_urlencoded = { version = "1.0.1", optional = true }
percent-encoding = { version = "2.1.0", optional = true }
arc-swap = { version = "1.5", optional = true }
base64 = { version = "0.22.0", optional = true }
tokio = { version = "1", optional = true, default_features = false, features = ["io-util"] }
reqwest = { version = "0.12", optional = true, default_features = false, features = ["gzip", "deflate", "http2"] }
tokio = { version = "1", optional = true, default-features = false, features = ["io-util"] }
reqwest = { version = "0.12", optional = true, default-features = false, features = ["gzip", "deflate", "http2"] }

tokio-tungstenite = { version = "0.21", optional = true, default_features = false, features = ["connect"] }
tokio-tungstenite = { version = "0.23", optional = true, default-features = false, features = ["connect"] }
miniz_oxide = { version = "0.7", optional = true }
futures = { version = "0.3", optional = true }
pin-project-lite = { version = "0.2.8", optional = true }
Expand Down Expand Up @@ -109,7 +109,7 @@ fs = ["tokio/fs"]
brotli = ["reqwest?/brotli"]

# Realtime gateway support
gateway = ["serde_json", "tokio-tungstenite", "miniz_oxide", "futures", "pin-project-lite", "_internal_common"]
gateway = ["serde_json", "client", "tokio-tungstenite", "miniz_oxide", "futures", "pin-project-lite", "_internal_common"]

framework_utils = ["smallvec"]
framework = ["client", "gateway", "async-trait", "tokio/macros", "framework_utils"]
Expand Down
2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
[dependencies]
schemars = { version = "0.8.12", optional = true }
serde = { version = "1.0.163", features = ["derive"] }
bitflags_serde_shim = { version = "0.2.5", default_features = false }
bitflags_serde_shim = { version = "0.2.5", default-features = false }

postgres-types = { version = "0.2.1", optional = true }
bytes = { version = "1", optional = true }
Expand Down
5 changes: 2 additions & 3 deletions src/client/file.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use bytes::BytesMut;
use smol_str::SmolStr;
use tokio::io::{AsyncRead, AsyncReadExt};

use super::{Client, ClientError};
Expand All @@ -16,7 +15,7 @@ impl Client {
#[cfg(feature = "fs")]
pub async fn upload_plain_file(
&self,
filename: impl Into<SmolStr>,
filename: impl Into<smol_str::SmolStr>,
mime: Option<mime::Mime>,
file: &mut tokio::fs::File,
progress: impl FnMut(u64, u64),
Expand All @@ -35,7 +34,7 @@ impl Client {
},
width: None,
height: None,
mime: mime.map(|m| SmolStr::from(m.as_ref())),
mime: mime.map(|m| smol_str::SmolStr::from(m.as_ref())),
preview: None,
};

Expand Down

0 comments on commit 07459d7

Please sign in to comment.