Merge pull request #847 from alexcrichton/fix-window

Move all methods on `Window` back to methods
This commit is contained in:
Alex Crichton
2018-09-18 16:59:46 -07:00
committed by GitHub
23 changed files with 157 additions and 148 deletions

View File

@ -510,7 +510,6 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a Option<String>)> for syn::ForeignItemFn
let shim = {
let ns = match kind {
ast::ImportFunctionKind::ScopedMethod { .. } |
ast::ImportFunctionKind::Normal => (0, "n"),
ast::ImportFunctionKind::Method { ref class, .. } => (1, &class[..]),
};