mirror of
https://github.com/servo/servo
synced 2026-04-30 11:27:28 +02:00
Reformat from_jsval implementation for unions.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user