mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
Reformat from_jsval implementation for unions.
This commit is contained in:
parent
6ef5894f01
commit
b29ffb1c4c
1 changed files with 2 additions and 1 deletions
|
@ -3953,7 +3953,8 @@ class CGUnionConversionStruct(CGThing):
|
||||||
method = CGWrapper(
|
method = CGWrapper(
|
||||||
CGIndenter(CGList(conversions, "\n\n")),
|
CGIndenter(CGList(conversions, "\n\n")),
|
||||||
pre="unsafe fn from_jsval(cx: *mut JSContext,\n"
|
pre="unsafe fn from_jsval(cx: *mut JSContext,\n"
|
||||||
" value: HandleValue, _option: ())"
|
" value: HandleValue,\n"
|
||||||
|
" _option: ())\n"
|
||||||
" -> Result<ConversionResult<%s>, ()> {\n" % self.type,
|
" -> Result<ConversionResult<%s>, ()> {\n" % self.type,
|
||||||
post="\n}")
|
post="\n}")
|
||||||
return CGWrapper(
|
return CGWrapper(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue