Skip to content

Commit

Permalink
Bug 1525158 - Allow nsresults as outparams r=myk,froydnj
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirk Steuber committed Feb 5, 2019
1 parent 8d2f0d9 commit 7e940ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpcom/idl-parser/xpidl/xpidl.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def nativeType(self, calltype):

def rustType(self, calltype):
if self.name == 'nsresult':
return '::nserror::nsresult'
return "%s::nserror::nsresult" % (calltype != 'in' and '*mut ' or '')

return "%s%s" % (calltype != 'in' and '*mut ' or '',
self.name)
Expand Down

0 comments on commit 7e940ea

Please sign in to comment.