about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <mail@carlanton.se>2014-01-12 12:37:01 +0100
committerCarl-Anton Ingmarsson <mail@carlanton.se>2014-01-12 13:33:52 +0100
commite9b188a590cbfad840126ecad131eaa718ce6f5f (patch)
tree37132ce6c4583482b61c7dc516d6b9adadd00cc2 /src
parent1fda761e9cc5b5bf9d5f0897f1556958a7746bf5 (diff)
downloadrust-e9b188a590cbfad840126ecad131eaa718ce6f5f.tar.gz
rust-e9b188a590cbfad840126ecad131eaa718ce6f5f.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/libextra/ebml.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/ebml.rs b/src/libextra/ebml.rs
index 3798ed8617e..e3a05ae0960 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
     }