Skip to content

Commit abd7dd8

Browse files
committed
term: Switch field privacy as necessary
1 parent ee7016d commit abd7dd8

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

src/libterm/lib.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
html_root_url = "http://static.rust-lang.org/doc/master")]
2121

2222
#![feature(macro_rules)]
23-
#![deny(missing_doc)]
23+
24+
// #![deny(missing_doc)] // NOTE: uncomment after a stage0 snap
25+
#![allow(missing_doc)] // NOTE: remove after a stage0 snap
26+
#![allow(visible_private_types)] // NOTE: remove after a stage0 snap
2427

2528
extern crate collections;
2629

@@ -111,9 +114,9 @@ fn cap_for_attr(attr: attr::Attr) -> &'static str {
111114
/// A Terminal that knows how many colors it supports, with a reference to its
112115
/// parsed TermInfo database record.
113116
pub struct Terminal<T> {
114-
priv num_colors: u16,
115-
priv out: T,
116-
priv ti: ~TermInfo
117+
num_colors: u16,
118+
out: T,
119+
ti: ~TermInfo
117120
}
118121

119122
impl<T: Writer> Terminal<T> {

src/libterm/terminfo/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ use collections::HashMap;
1515
/// A parsed terminfo database entry.
1616
pub struct TermInfo {
1717
/// Names for the terminal
18-
priv names: Vec<~str> ,
18+
pub names: Vec<~str> ,
1919
/// Map of capability name to boolean value
20-
priv bools: HashMap<~str, bool>,
20+
pub bools: HashMap<~str, bool>,
2121
/// Map of capability name to numeric value
22-
numbers: HashMap<~str, u16>,
22+
pub numbers: HashMap<~str, u16>,
2323
/// Map of capability name to raw (unexpanded) string
24-
strings: HashMap<~str, Vec<u8> >
24+
pub strings: HashMap<~str, Vec<u8> >
2525
}
2626

2727
pub mod searcher;

src/libterm/terminfo/parm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ pub enum Param {
4848
/// Container for static and dynamic variable arrays
4949
pub struct Variables {
5050
/// Static variables A-Z
51-
priv sta: [Param, ..26],
51+
sta: [Param, ..26],
5252
/// Dynamic variables a-z
53-
priv dyn: [Param, ..26]
53+
dyn: [Param, ..26]
5454
}
5555

5656
impl Variables {

0 commit comments

Comments
 (0)