Fix bindings.rs warnings.

MozReview-Commit-ID: G03MWTQMkWt
This commit is contained in:
Bobby Holley 2016-10-10 19:42:01 -07:00 committed by Manish Goregaokar
parent 4398512c12
commit a5aed43cd8
2 changed files with 5 additions and 13 deletions

View file

@ -195,9 +195,7 @@ COMPILATION_TARGETS = {
# Generation of the ffi bindings. # Generation of the ffi bindings.
"bindings": { "bindings": {
"target_dir": "../gecko_bindings", "target_dir": "../gecko_bindings",
"raw_lines": [ "raw_lines": [],
"use heapsize::HeapSizeOf;",
],
"flags": [ "flags": [
"--ignore-methods", "--ignore-methods",
], ],
@ -224,13 +222,13 @@ COMPILATION_TARGETS = {
"nsStyleImageLayers_Layer", "nsStyleImageLayers_LayerType", "nsStyleImageLayers_Layer", "nsStyleImageLayers_LayerType",
"nsStyleUnit", "nsStyleUnion", "nsStyleCoord_CalcValue", "nsStyleUnit", "nsStyleUnion", "nsStyleCoord_CalcValue",
"nsStyleCoord_Calc", "nsRestyleHint", "ServoElementSnapshot", "nsStyleCoord_Calc", "nsRestyleHint", "ServoElementSnapshot",
"nsChangeHint", "SheetParsingMode", "nsMainThreadPtrHandle", "nsChangeHint", "SheetParsingMode",
"nsMainThreadPtrHolder", "nscolor", "nsFont", "FontFamilyList", "nsMainThreadPtrHolder", "nsFont", "FontFamilyList",
"FontFamilyType", "nsIAtom", "nsStyleContext", "StyleClipPath", "FontFamilyType", "nsIAtom", "nsStyleContext", "StyleClipPath",
"StyleBasicShapeType", "StyleBasicShape", "nsCSSShadowArray", "StyleBasicShapeType", "StyleBasicShape", "nsCSSShadowArray",
"nsINode", "nsIDocument", "nsIPrincipal", "nsIURI", "nsIPrincipal", "nsIURI",
"RawGeckoNode", "RawGeckoElement", "RawGeckoDocument", "RawGeckoNode", "RawGeckoElement", "RawGeckoDocument",
"ServoNodeData", "nsString" "nsString"
], ],
"servo_nullable_arc_types": [ "servo_nullable_arc_types": [
"ServoComputedValues", "RawServoStyleSheet", "ServoComputedValues", "RawServoStyleSheet",

View file

@ -1,6 +1,5 @@
/* automatically generated by rust-bindgen */ /* automatically generated by rust-bindgen */
use heapsize::HeapSizeOf;
pub type ServoComputedValuesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoComputedValues>; pub type ServoComputedValuesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoComputedValues>;
pub type ServoComputedValuesBorrowedOrNull<'a> = Option<&'a ServoComputedValues>; pub type ServoComputedValuesBorrowedOrNull<'a> = Option<&'a ServoComputedValues>;
pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues; pub type ServoComputedValuesBorrowed<'a> = &'a ServoComputedValues;
@ -147,9 +146,7 @@ use gecko_bindings::structs::nsRestyleHint;
use gecko_bindings::structs::ServoElementSnapshot; use gecko_bindings::structs::ServoElementSnapshot;
use gecko_bindings::structs::nsChangeHint; use gecko_bindings::structs::nsChangeHint;
use gecko_bindings::structs::SheetParsingMode; use gecko_bindings::structs::SheetParsingMode;
use gecko_bindings::structs::nsMainThreadPtrHandle;
use gecko_bindings::structs::nsMainThreadPtrHolder; use gecko_bindings::structs::nsMainThreadPtrHolder;
use gecko_bindings::structs::nscolor;
use gecko_bindings::structs::nsFont; use gecko_bindings::structs::nsFont;
use gecko_bindings::structs::FontFamilyList; use gecko_bindings::structs::FontFamilyList;
use gecko_bindings::structs::FontFamilyType; use gecko_bindings::structs::FontFamilyType;
@ -161,14 +158,11 @@ use gecko_bindings::structs::StyleClipPath;
use gecko_bindings::structs::StyleBasicShapeType; use gecko_bindings::structs::StyleBasicShapeType;
use gecko_bindings::structs::StyleBasicShape; use gecko_bindings::structs::StyleBasicShape;
use gecko_bindings::structs::nsCSSShadowArray; use gecko_bindings::structs::nsCSSShadowArray;
use gecko_bindings::structs::nsINode;
use gecko_bindings::structs::nsIDocument;
use gecko_bindings::structs::nsIPrincipal; use gecko_bindings::structs::nsIPrincipal;
use gecko_bindings::structs::nsIURI; use gecko_bindings::structs::nsIURI;
use gecko_bindings::structs::RawGeckoNode; use gecko_bindings::structs::RawGeckoNode;
use gecko_bindings::structs::RawGeckoElement; use gecko_bindings::structs::RawGeckoElement;
use gecko_bindings::structs::RawGeckoDocument; use gecko_bindings::structs::RawGeckoDocument;
use gecko_bindings::structs::ServoNodeData;
use gecko_bindings::structs::nsString; use gecko_bindings::structs::nsString;
extern "C" { extern "C" {