From e9b188a590cbfad840126ecad131eaa718ce6f5f Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Sun, 12 Jan 2014 12:37:01 +0100 Subject: [PATCH] extra::ebml: Make reader::Res public Since reader::vuint_at() returns a result of type reader::Res it makes sense to make it public. Due to rust's current behavior of externally referenced private structures, https://github.com/mozilla/rust/issues/10573, you could still use the result and assign it to a variable if you let the compiler do the type assignment, but you could not explicitly annotate a variable to hold a reader::Res. --- src/libextra/ebml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libextra/ebml.rs b/src/libextra/ebml.rs index 3798ed8617e4..e3a05ae0960c 100644 --- a/src/libextra/ebml.rs +++ b/src/libextra/ebml.rs @@ -90,7 +90,7 @@ pub mod reader { // ebml reading - struct Res { + pub struct Res { val: uint, next: uint }