Skip to content

Commit ee72432

Browse files
committed
remove duplicate value nil function
1 parent 6a684e6 commit ee72432

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/reader.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -326,17 +326,6 @@ pub fn try_read_bool(input: &str) -> IResult<&str, Value> {
326326
Ok((rest_input, Value::Boolean(bool.parse().unwrap())))
327327
}
328328

329-
// Tries to parse &str into Value::Nil
330-
/// Expects:
331-
/// nil
332-
/// Example success:
333-
/// nil => Value::Nil
334-
pub fn try_read_nil(input: &str) -> IResult<&str, Value> {
335-
named!(nil_parser<&str,&str>, tag!("nil"));
336-
let (rest_input, nil) = nil_parser(input)?;
337-
Ok((rest_input, Value::Nil))
338-
}
339-
340329
/// Tries to parse &str into Value::double
341330
///
342331
pub fn try_read_f64(input: &str) -> IResult<&str, Value> {

0 commit comments

Comments
 (0)