{"action":"created","issue":{"url":"https://api.github.com/repos/erickt/rust-serde/issues/29","labels_url":"https://api.github.com/repos/erickt/rust-serde/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/erickt/rust-serde/issues/29/comments","events_url":"https://api.github.com/repos/erickt/rust-serde/issues/29/events","html_url":"https://github.com/erickt/rust-serde/issues/29","id":60109777,"number":29,"title":"json enum deserialization needs an allocation","user":{"login":"erickt","id":84711,"avatar_url":"https://avatars.githubusercontent.com/u/84711?v=3","gravatar_id":"","url":"https://api.github.com/users/erickt","html_url":"https://github.com/erickt","followers_url":"https://api.github.com/users/erickt/followers","following_url":"https://api.github.com/users/erickt/following{/other_user}","gists_url":"https://api.github.com/users/erickt/gists{/gist_id}","starred_url":"https://api.github.com/users/erickt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickt/subscriptions","organizations_url":"https://api.github.com/users/erickt/orgs","repos_url":"https://api.github.com/users/erickt/repos","events_url":"https://api.github.com/users/erickt/events{/privacy}","received_events_url":"https://api.github.com/users/erickt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T14:41:04Z","updated_at":"2015-03-13T12:08:21Z","closed_at":null,"body":"This is happening here: https://github.com/erickt/rust-serde/blob/master/serde2/src/json/de.rs#L424. Unfortunately we are passing both a `&self` and implicitly a `&mut self` to the caller. We'll probably need to change how `de::Visitor::visit_enum` works."},"comment":{"url":"https://api.github.com/repos/erickt/rust-serde/issues/comments/78941954","html_url":"https://github.com/erickt/rust-serde/issues/29#issuecomment-78941954","issue_url":"https://api.github.com/repos/erickt/rust-serde/issues/29","id":78941954,"user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars.githubusercontent.com/u/332036?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-obk","html_url":"https://github.com/oli-obk","followers_url":"https://api.github.com/users/oli-obk/followers","following_url":"https://api.github.com/users/oli-obk/following{/other_user}","gists_url":"https://api.github.com/users/oli-obk/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-obk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-obk/subscriptions","organizations_url":"https://api.github.com/users/oli-obk/orgs","repos_url":"https://api.github.com/users/oli-obk/repos","events_url":"https://api.github.com/users/oli-obk/events{/privacy}","received_events_url":"https://api.github.com/users/oli-obk/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T12:08:21Z","updated_at":"2015-03-13T12:08:21Z","body":"when using `visit_named_map` something similar happens in my case. maybe it needs to be split up into `visit_map_name` and `visit_map` (the latter already existing)."}}