diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-01-17 20:36:41 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-01-17 20:36:41 +0300 |
commit | b2d017242204d5b395c52b101f6956985a57d911 (patch) | |
tree | 0c2f131af70dd06e28a0d7df45dca0e8b1707ab0 /text/json | |
parent | 75d348709c74cb62f9b4dd64fb310ed311f22ac9 (diff) |
Replace `Foo::from_instance(foo)` with `foo.imp()`
Diffstat (limited to 'text/json')
-rw-r--r-- | text/json/src/jsongstparse/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs index 92e49285..3618d55f 100644 --- a/text/json/src/jsongstparse/imp.rs +++ b/text/json/src/jsongstparse/imp.rs @@ -394,7 +394,7 @@ impl JsonGstParse { } }; - let parse = Self::from_instance(&element); + let parse = element.imp(); parse.loop_fn(&element); }); if res.is_err() { |