Mark some unused fields.

This commit is contained in:
Ms2ger 2014-07-04 11:56:55 +02:00
parent cfa9aaac08
commit 11aa36619d
5 changed files with 11 additions and 10 deletions

View file

@ -950,9 +950,10 @@ pub struct cef_scheme_registrar {
// per unique |scheme_name| value. If |scheme_name| is already registered or // per unique |scheme_name| value. If |scheme_name| is already registered or
// if an error occurs this function will return false (0). // if an error occurs this function will return false (0).
/// ///
add_custom_scheme: extern "C" fn(registrar: *mut cef_scheme_registrar, _add_custom_scheme: extern "C" fn(registrar: *mut cef_scheme_registrar,
scheme_name: *cef_string_t, scheme_name: *cef_string_t,
is_standard: c_int, is_local: c_int, is_display_isolated: c_int), is_standard: c_int, is_local: c_int,
is_display_isolated: c_int),
} }
/// ///

View file

@ -37,7 +37,7 @@ fn fixed_to_float_ft(f: i32) -> f64 {
} }
pub struct FontTable { pub struct FontTable {
bogus: () _bogus: ()
} }
impl FontTableMethods for FontTable { impl FontTableMethods for FontTable {

View file

@ -76,7 +76,7 @@ impl FloatedBlockInfo {
/// The solutions for the heights-and-margins constraint equation. /// The solutions for the heights-and-margins constraint equation.
struct HeightConstraintSolution { struct HeightConstraintSolution {
top: Au, top: Au,
bottom: Au, _bottom: Au,
height: Au, height: Au,
margin_top: Au, margin_top: Au,
margin_bottom: Au margin_bottom: Au
@ -87,7 +87,7 @@ impl HeightConstraintSolution {
-> HeightConstraintSolution { -> HeightConstraintSolution {
HeightConstraintSolution { HeightConstraintSolution {
top: top, top: top,
bottom: bottom, _bottom: bottom,
height: height, height: height,
margin_top: margin_top, margin_top: margin_top,
margin_bottom: margin_bottom, margin_bottom: margin_bottom,

View file

@ -38,7 +38,7 @@ pub struct FlowListIterator<'a> {
/// Double-ended mutable FlowList iterator /// Double-ended mutable FlowList iterator
pub struct MutFlowListIterator<'a> { pub struct MutFlowListIterator<'a> {
list: &'a mut FlowList, _list: &'a mut FlowList,
head: Rawlink, head: Rawlink,
nelem: uint, nelem: uint,
} }
@ -208,7 +208,7 @@ impl FlowList {
MutFlowListIterator { MutFlowListIterator {
nelem: self.len(), nelem: self.len(),
head: head_raw, head: head_raw,
list: self _list: self
} }
} }
} }

View file

@ -109,7 +109,7 @@ pub fn WrapCallThisObject<T: Reflectable>(cx: *mut JSContext,
pub struct CallSetup { pub struct CallSetup {
cx: *mut JSContext, cx: *mut JSContext,
handling: ExceptionHandling _handling: ExceptionHandling
} }
impl CallSetup { impl CallSetup {
@ -118,7 +118,7 @@ impl CallSetup {
let cx = win.deref().get_cx(); let cx = win.deref().get_cx();
CallSetup { CallSetup {
cx: cx, cx: cx,
handling: handling _handling: handling
} }
} }