std: Rename the hashmap constructors to conform to new standards
Instead of using the new_ prefix just name them after their type
This commit is contained in:
parent
383a801993
commit
3864d6d845
43 changed files with 140 additions and 143 deletions
|
@ -407,7 +407,7 @@ impl parser for parser {
|
|||
self.bump();
|
||||
self.parse_whitespace();
|
||||
|
||||
let values = map::new_str_hash();
|
||||
let values = map::str_hash();
|
||||
|
||||
if self.ch == '}' {
|
||||
self.bump();
|
||||
|
@ -501,7 +501,7 @@ fn eq(value0: json, value1: json) -> bool {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
fn mk_dict(items: [(str, json)]) -> json {
|
||||
let d = map::new_str_hash();
|
||||
let d = map::str_hash();
|
||||
|
||||
vec::iter(items) { |item|
|
||||
let (key, value) = item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue