common: Remove unnecessary bound from FlattenedJson::from_raw

This commit is contained in:
Jonas Platte 2022-02-12 01:44:57 +01:00
parent 1b4234c505
commit 8f1eae97ce
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -271,14 +271,9 @@ pub struct FlattenedJson {
impl FlattenedJson { impl FlattenedJson {
/// Create a `FlattenedJson` from `Raw`. /// Create a `FlattenedJson` from `Raw`.
pub fn from_raw<T>(raw: &Raw<T>) -> Self pub fn from_raw<T>(raw: &Raw<T>) -> Self {
where
T: Serialize,
{
let mut s = Self { map: BTreeMap::new() }; let mut s = Self { map: BTreeMap::new() };
s.flatten_value(to_json_value(raw).unwrap(), "".into()); s.flatten_value(to_json_value(raw).unwrap(), "".into());
s s
} }