Skip to content

Commit

Permalink
Several small patches (#439)
Browse files Browse the repository at this point in the history
- Bump versions of 2 packages to mitigate security vulnerabilities
- Remove redundant structdef
- Split up gateway.rs into multiple files for better clarity
  • Loading branch information
bitfl0wer authored Nov 14, 2023
2 parents 5fc9795 + bd8bf80 commit a2306eb
Show file tree
Hide file tree
Showing 9 changed files with 600 additions and 590 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "chorus"
description = "A library for interacting with multiple Spacebar-compatible Instances at once."
version = "0.10.1"
version = "0.11.0"
license = "AGPL-3.0"
edition = "2021"
repository = "https://github.com/polyphony-chat/chorus"
Expand All @@ -27,7 +27,7 @@ url = "2.4.0"
chrono = { version = "0.4.26", features = ["serde"] }
regex = "1.9.4"
custom_error = "1.9.2"
tokio-tungstenite = { version = "0.20.0", features = [
tokio-tungstenite = { version = "0.20.1", features = [
"rustls-tls-native-roots",
"rustls-native-certs",
] }
Expand Down
4 changes: 2 additions & 2 deletions src/api/invites/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ impl ChorusUser {
.header("Authorization", self.token()),
limit_type: LimitType::Global,
};
if session_id.is_some() {
if let Some(session_id) = session_id {
request.request = request
.request
.header("Content-Type", "application/json")
.body(to_string(session_id.unwrap()).unwrap());
.body(to_string(session_id).unwrap());
}
request.deserialize_response::<Invite>(self).await
}
Expand Down
Loading

0 comments on commit a2306eb

Please sign in to comment.