about summary refs log tree commit diff
path: root/src/libextra/json.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libextra/json.rs')
-rw-r--r--src/libextra/json.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libextra/json.rs b/src/libextra/json.rs
index d69548c6f9d..22abe0edbb9 100644
--- a/src/libextra/json.rs
+++ b/src/libextra/json.rs
@@ -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) {