Commit 88388f4
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 9a59774 commit 88388f4
1 file changed
+156
-121
lines changed
0 commit comments