From d8957e6332224919d80e1518a850109308e4ce73 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 25 Sep 2013 19:42:02 -0700 Subject: [PATCH] Some struct visibility fixes --- src/libextra/url.rs | 4 ++-- src/libstd/rt/io/mem.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libextra/url.rs b/src/libextra/url.rs index ca1ce752faa..451b410833f 100644 --- a/src/libextra/url.rs +++ b/src/libextra/url.rs @@ -21,7 +21,7 @@ use std::to_bytes; use std::uint; #[deriving(Clone, Eq)] -struct Url { +pub struct Url { scheme: ~str, user: Option, host: ~str, @@ -32,7 +32,7 @@ struct Url { } #[deriving(Clone, Eq)] -struct UserInfo { +pub struct UserInfo { user: ~str, pass: Option<~str> } diff --git a/src/libstd/rt/io/mem.rs b/src/libstd/rt/io/mem.rs index 808e9f3a383..6d2a8a0d7e5 100644 --- a/src/libstd/rt/io/mem.rs +++ b/src/libstd/rt/io/mem.rs @@ -128,7 +128,7 @@ impl Decorator<~[u8]> for MemReader { /// Writes to a fixed-size byte slice -struct BufWriter<'self> { +pub struct BufWriter<'self> { buf: &'self mut [u8], pos: uint } @@ -156,7 +156,7 @@ impl<'self> Seek for BufWriter<'self> { /// Reads from a fixed-size byte slice -struct BufReader<'self> { +pub struct BufReader<'self> { buf: &'self [u8], pos: uint }