Move FromJSValConvertible to associated types (avoids old impl check)

This commit is contained in:
Manish Goregaokar 2015-01-31 16:05:16 +05:30
parent 40c9e7f72e
commit 5c9b1019a9
3 changed files with 34 additions and 20 deletions

View file

@ -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):