Skip to content

Commit b8cafda

Browse files
authored
Merge branch 'ruma:main' into room_membership
2 parents d9a56e7 + 0a033da commit b8cafda

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ server = []
1515

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

18-
unstable-exhaustive-types = []
19-
2018
[dependencies]
2119
hex = { version = "0.4.3", optional = true }
2220
hmac = { version = "0.12.1", optional = true }
23-
ruma = { version = "0.9.4", features = ["api", "events"] }
21+
ruma = { version = "0.12.0", features = ["api", "events"] }
2422
serde = { version = "1.0.118", features = ["derive"] }
2523
sha1 = { version = "0.10.1", optional = true }
2624

2725
[dev-dependencies]
2826
serde_json = "1.0.61"
27+
28+
[lints.rust]
29+
unexpected_cfgs = { level = "warn", check-cfg = [
30+
'cfg(ruma_unstable_exhaustive_types)', # set all types as exhaustive
31+
] }

src/serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ where
88
{
99
struct BoolOrUIntVisitor;
1010

11-
impl<'de> Visitor<'de> for BoolOrUIntVisitor {
11+
impl Visitor<'_> for BoolOrUIntVisitor {
1212
type Value = bool;
1313

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

0 commit comments

Comments
 (0)