Skip to content

Commit

Permalink
extra::ebml: Make reader::Res public
Browse files Browse the repository at this point in the history
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,
#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.
  • Loading branch information
c-a committed Jan 12, 2014
1 parent 1fda761 commit e9b188a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libextra/ebml.rs
Expand Up @@ -90,7 +90,7 @@ pub mod reader {

// ebml reading

struct Res {
pub struct Res {
val: uint,
next: uint
}
Expand Down

0 comments on commit e9b188a

Please sign in to comment.