Skip to content

Commit

Permalink
Merge branch 'ruma:main' into room_membership
Browse files Browse the repository at this point in the history
  • Loading branch information
kilimnik authored Jan 9, 2025
2 parents d9a56e7 + 0a033da commit b8cafda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ server = []

shared-secret-registration-mac = ["dep:hex", "dep:hmac", "dep:sha1"]

unstable-exhaustive-types = []

[dependencies]
hex = { version = "0.4.3", optional = true }
hmac = { version = "0.12.1", optional = true }
ruma = { version = "0.9.4", features = ["api", "events"] }
ruma = { version = "0.12.0", features = ["api", "events"] }
serde = { version = "1.0.118", features = ["derive"] }
sha1 = { version = "0.10.1", optional = true }

[dev-dependencies]
serde_json = "1.0.61"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(ruma_unstable_exhaustive_types)', # set all types as exhaustive
] }
2 changes: 1 addition & 1 deletion src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ where
{
struct BoolOrUIntVisitor;

impl<'de> Visitor<'de> for BoolOrUIntVisitor {
impl Visitor<'_> for BoolOrUIntVisitor {
type Value = bool;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down

0 comments on commit b8cafda

Please sign in to comment.