diff --git a/Cargo.toml b/Cargo.toml index 97ccb15..3bd6b25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 +] } diff --git a/src/serde.rs b/src/serde.rs index 580ba91..ee360c0 100644 --- a/src/serde.rs +++ b/src/serde.rs @@ -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 {