代码有个小错误

pull/1095/head
GSLun 2 years ago committed by GitHub
parent 2d17b02d5a
commit 9f5194abcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -113,7 +113,7 @@ let resolvers: HashMap<_, _> = accounts
```rust
let resolvers = account.into_iter().fold(HashMap::new(), |mut resolvers, a|{
resolvers.entry(a.id).or_insert(Vec::new).push(a);
resolvers.entry(a.id).or_insert(Vec::new()).push(a);
resolvers
});
```

Loading…
Cancel
Save