From 8f1eae97ce76384c01ba9283c2bccbb0e8d086cd Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 12 Feb 2022 01:44:57 +0100 Subject: [PATCH] common: Remove unnecessary bound from FlattenedJson::from_raw --- crates/ruma-common/src/push/condition.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/ruma-common/src/push/condition.rs b/crates/ruma-common/src/push/condition.rs index 72f6f3a7..4ac5156d 100644 --- a/crates/ruma-common/src/push/condition.rs +++ b/crates/ruma-common/src/push/condition.rs @@ -271,14 +271,9 @@ pub struct FlattenedJson { impl FlattenedJson { /// Create a `FlattenedJson` from `Raw`. - pub fn from_raw(raw: &Raw) -> Self - where - T: Serialize, - { + pub fn from_raw(raw: &Raw) -> Self { let mut s = Self { map: BTreeMap::new() }; - s.flatten_value(to_json_value(raw).unwrap(), "".into()); - s }