[bindings] Allow `write_rust_type` to handle leading-colon paths
authorMatt Corallo <git@bluematt.me>
Thu, 31 Dec 2020 00:46:39 +0000 (19:46 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 4 Jan 2021 21:14:26 +0000 (16:14 -0500)
commitf116ebbdf9d9c19cfb0e41c622d73cd750fccb44
tree3926e02c5fa6549efdaecc59bf74955e55ddf24b
parent3cdf7bacfc49ed19276b843a6cff0109f03639a5
[bindings] Allow `write_rust_type` to handle leading-colon paths

It just stubs out to `write_rust_path` in this case anyway, which
handles leading-colons just fine, so no need to panic on them.
c-bindings-gen/src/types.rs