mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move FromJSValConvertible to associated types (avoids old impl check)
This commit is contained in:
parent
40c9e7f72e
commit
5c9b1019a9
3 changed files with 34 additions and 20 deletions
|
@ -3016,7 +3016,7 @@ class CGUnionConversionStruct(CGThing):
|
|||
post="\n}")
|
||||
return CGWrapper(
|
||||
CGIndenter(method),
|
||||
pre="impl FromJSValConvertible<()> for %s {\n" % self.type,
|
||||
pre="impl FromJSValConvertible for %s {\ntype Config = ();\n" % self.type,
|
||||
post="\n}")
|
||||
|
||||
def try_method(self, t):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue