From ecc1a3d9f0f82f3085cfb5536b35b35d8bd427b3 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 5 Apr 2014 19:45:26 +0200 Subject: [PATCH] Update to current rust: struct fields are private by default. --- xlib.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xlib.rs b/xlib.rs index 64d3c65..522f835 100644 --- a/xlib.rs +++ b/xlib.rs @@ -1063,16 +1063,16 @@ pub struct struct_unnamed1 { // Additions --pcwalton pub struct XVisualInfo { - visual: *Visual, - visualid: VisualID, - screen: c_int, - depth: c_int, - class: c_int, - red_mask: c_ulong, - green_mask: c_ulong, - blue_mask: c_ulong, - colormap_size: c_int, - bits_per_rgb: c_int, + pub visual: *Visual, + pub visualid: VisualID, + pub screen: c_int, + pub depth: c_int, + pub class: c_int, + pub red_mask: c_ulong, + pub green_mask: c_ulong, + pub blue_mask: c_ulong, + pub colormap_size: c_int, + pub bits_per_rgb: c_int, } pub static ZPixmap: c_int = 2; // depth == drawable depth