Merge pull request #1095 from GSlun/patch-2

代码有个小错误
pull/1004/merge
Sunface 2 years ago committed by GitHub
commit d23c8d6b76
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