Remove all uses of pub impl. rs=style

This commit is contained in:
Patrick Walton
2013-05-31 15:17:22 -07:00
parent 1e52eede31
commit 5fb254695b
181 changed files with 2890 additions and 2784 deletions

View File

@@ -373,17 +373,19 @@ pub struct id_range {
max: node_id,
}
pub impl id_range {
fn max() -> id_range {
id_range {min: int::max_value,
max: int::min_value}
impl id_range {
pub fn max() -> id_range {
id_range {
min: int::max_value,
max: int::min_value,
}
}
fn empty(&self) -> bool {
pub fn empty(&self) -> bool {
self.min >= self.max
}
fn add(&mut self, id: node_id) {
pub fn add(&mut self, id: node_id) {
self.min = int::min(self.min, id);
self.max = int::max(self.max, id + 1);
}