{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/50186","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/50186/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/50186/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/50186/events","html_url":"https://github.com/rust-lang/rust/issues/50186","id":316931401,"number":50186,"title":"Tracking issue for Cell::update","user":{"login":"stjepang","id":1303843,"avatar_url":"https://avatars2.githubusercontent.com/u/1303843?v=4","gravatar_id":"","url":"https://api.github.com/users/stjepang","html_url":"https://github.com/stjepang","followers_url":"https://api.github.com/users/stjepang/followers","following_url":"https://api.github.com/users/stjepang/following{/other_user}","gists_url":"https://api.github.com/users/stjepang/gists{/gist_id}","starred_url":"https://api.github.com/users/stjepang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjepang/subscriptions","organizations_url":"https://api.github.com/users/stjepang/orgs","repos_url":"https://api.github.com/users/stjepang/repos","events_url":"https://api.github.com/users/stjepang/events{/privacy}","received_events_url":"https://api.github.com/users/stjepang/received_events","type":"User","site_admin":false},"labels":[{"id":246778137,"url":"https://api.github.com/repos/rust-lang/rust/labels/B-unstable","name":"B-unstable","color":"d304cb","default":false},{"id":211668062,"url":"https://api.github.com/repos/rust-lang/rust/labels/T-libs","name":"T-libs","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-23T18:34:04Z","updated_at":"2018-05-02T15:18:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This issue tracks the `cell_update` feature.\r\n\r\nThe feature adds `Cell::update`, which allows one to more easily modify the inner value.\r\nFor example, instead of `c.set(c.get() + 1)` now you can just do `c.update(|x| x + 1)`:\r\n\r\n```rust\r\nlet c = Cell::new(5);\r\nlet new = c.update(|x| x + 1);\r\n\r\nassert_eq!(new, 6);\r\nassert_eq!(c.get(), 6);\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/386014933","html_url":"https://github.com/rust-lang/rust/issues/50186#issuecomment-386014933","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/50186","id":386014933,"user":{"login":"stjepang","id":1303843,"avatar_url":"https://avatars2.githubusercontent.com/u/1303843?v=4","gravatar_id":"","url":"https://api.github.com/users/stjepang","html_url":"https://github.com/stjepang","followers_url":"https://api.github.com/users/stjepang/followers","following_url":"https://api.github.com/users/stjepang/following{/other_user}","gists_url":"https://api.github.com/users/stjepang/gists{/gist_id}","starred_url":"https://api.github.com/users/stjepang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjepang/subscriptions","organizations_url":"https://api.github.com/users/stjepang/orgs","repos_url":"https://api.github.com/users/stjepang/repos","events_url":"https://api.github.com/users/stjepang/events{/privacy}","received_events_url":"https://api.github.com/users/stjepang/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T15:18:15Z","updated_at":"2018-05-02T15:18:15Z","author_association":"CONTRIBUTOR","body":"What do you think, @SimonSapin? Would two such methods, `get_update` and `take_update`, be a more appropriate interface?"}}
{"actor":{"display_login":"stjepang"}}