Reformat from_jsval implementation for unions.

This commit is contained in:
Ms2ger 2016-08-24 15:41:07 +02:00
parent 6ef5894f01
commit b29ffb1c4c

View file

@ -3953,7 +3953,8 @@ class CGUnionConversionStruct(CGThing):
method = CGWrapper(
CGIndenter(CGList(conversions, "\n\n")),
pre="unsafe fn from_jsval(cx: *mut JSContext,\n"
" value: HandleValue, _option: ())"
" value: HandleValue,\n"
" _option: ())\n"
" -> Result<ConversionResult<%s>, ()> {\n" % self.type,
post="\n}")
return CGWrapper(