common: Remove unnecessary bound from FlattenedJson::from_raw
This commit is contained in:
parent
1b4234c505
commit
8f1eae97ce
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user