1
Fork 0

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

@ -10,7 +10,9 @@
// Rust JSON serialization library
// Copyright (c) 2011 Google Inc.
#[forbid(non_camel_case_types)];
#[allow(missing_doc)];
//! json serialization
@ -497,8 +499,8 @@ pub fn Parser(rdr: @io::Reader) -> Parser {
}
}
pub impl Parser {
fn parse(&mut self) -> Result<Json, Error> {
impl Parser {
pub fn parse(&mut self) -> Result<Json, Error> {
match self.parse_value() {
Ok(value) => {
// Skip trailing whitespaces.
@ -515,7 +517,7 @@ pub impl Parser {
}
}
priv impl Parser {
impl Parser {
fn eof(&self) -> bool { self.ch == -1 as char }
fn bump(&mut self) {