style: Remove free parsing functions, use Integer::parse and Number::parse instead.

This commit is contained in:
Emilio Cobos Álvarez 2017-12-02 16:14:26 +01:00
parent 45bbbac9d9
commit 93fc9ab63a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 57 additions and 68 deletions

View file

@ -334,7 +334,7 @@
Ok(t) => return Err(location.new_unexpected_token_error(t.clone())),
Err(_) => break,
};
let counter_delta = input.try(|input| specified::parse_integer(context, input))
let counter_delta = input.try(|input| specified::Integer::parse(context, input))
.unwrap_or(specified::Integer::new(default_value));
counters.push((counter_name, counter_delta))
}