{"action":"closed","issue":{"url":"https://api.github.com/repos/servo/servo/issues/5109","labels_url":"https://api.github.com/repos/servo/servo/issues/5109/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/5109/comments","events_url":"https://api.github.com/repos/servo/servo/issues/5109/events","html_url":"https://github.com/servo/servo/issues/5109","id":59417346,"number":5109,"title":"Replace uses of accumulating fold with sum","user":{"login":"jdm","id":27658,"avatar_url":"https://avatars.githubusercontent.com/u/27658?v=3","gravatar_id":"","url":"https://api.github.com/users/jdm","html_url":"https://github.com/jdm","followers_url":"https://api.github.com/users/jdm/followers","following_url":"https://api.github.com/users/jdm/following{/other_user}","gists_url":"https://api.github.com/users/jdm/gists{/gist_id}","starred_url":"https://api.github.com/users/jdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdm/subscriptions","organizations_url":"https://api.github.com/users/jdm/orgs","repos_url":"https://api.github.com/users/jdm/repos","events_url":"https://api.github.com/users/jdm/events{/privacy}","received_events_url":"https://api.github.com/users/jdm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/servo/servo/labels/E-easy","name":"E-easy","color":"02e10c"},{"url":"https://api.github.com/repos/servo/servo/labels/I-cleanup","name":"I-cleanup","color":"e11d21"},{"url":"https://api.github.com/repos/servo/servo/labels/S-needs%20decision","name":"S-needs decision","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-01T21:04:09Z","updated_at":"2015-03-03T02:03:53Z","closed_at":"2015-03-03T02:03:53Z","body":"There are several callers of `fold` today that start with an initial value of 0 then add all the elements of a vector to get the total. This would be much easier to read if it used [AdditiveIterator::sum](http://doc.servo.org/std/iter/trait.AdditiveIterator.html#tymethod.sum) instead. We may need to implement that trait for the `Au` type for some of the callers."}}