Skip to content

Commit fab0f47

Browse files
committed
workcache: Switch field privacy as necessary
1 parent 52974bd commit fab0f47

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/libworkcache/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ impl WorkMap {
140140
}
141141

142142
pub struct Database {
143-
priv db_filename: Path,
144-
priv db_cache: TreeMap<~str, ~str>,
145-
db_dirty: bool
143+
db_filename: Path,
144+
db_cache: TreeMap<~str, ~str>,
145+
pub db_dirty: bool,
146146
}
147147

148148
impl Database {
@@ -225,26 +225,26 @@ pub type FreshnessMap = TreeMap<~str,extern fn(&str,&str)->bool>;
225225

226226
#[deriving(Clone)]
227227
pub struct Context {
228-
db: Arc<RWLock<Database>>,
229-
priv cfg: Arc<json::Object>,
228+
pub db: Arc<RWLock<Database>>,
229+
cfg: Arc<json::Object>,
230230
/// Map from kinds (source, exe, url, etc.) to a freshness function.
231231
/// The freshness function takes a name (e.g. file path) and value
232232
/// (e.g. hash of file contents) and determines whether it's up-to-date.
233233
/// For example, in the file case, this would read the file off disk,
234234
/// hash it, and return the result of comparing the given hash and the
235235
/// read hash for equality.
236-
priv freshness: Arc<FreshnessMap>
236+
freshness: Arc<FreshnessMap>
237237
}
238238

239239
pub struct Prep<'a> {
240-
priv ctxt: &'a Context,
241-
priv fn_name: &'a str,
242-
priv declared_inputs: WorkMap,
240+
ctxt: &'a Context,
241+
fn_name: &'a str,
242+
declared_inputs: WorkMap,
243243
}
244244

245245
pub struct Exec {
246-
priv discovered_inputs: WorkMap,
247-
priv discovered_outputs: WorkMap
246+
discovered_inputs: WorkMap,
247+
discovered_outputs: WorkMap
248248
}
249249

250250
enum Work<'a, T> {

0 commit comments

Comments
 (0)