Commit 79831ca
committed
Use
The `FromClean` trait is used a lot for converting to rustdoc-json
format. But it's not used universally; there are still some ad hoc
functions and methods for converting. This commit fixes this
inconsistency by using `FromClean` more.
The commit also introduces `FromClean` for `Box` and `Option`. This lets
a lot of `as_ref` and `map` calls be removed in favour of simple
`into_json` calls.FromClean more.1 parent 3f44726 commit 79831ca
1 file changed
+188
-148
lines changed
0 commit comments