{"action":"created","issue":{"url":"https://api.github.com/repos/iron/params/issues/30","repository_url":"https://api.github.com/repos/iron/params","labels_url":"https://api.github.com/repos/iron/params/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/iron/params/issues/30/comments","events_url":"https://api.github.com/repos/iron/params/issues/30/events","html_url":"https://github.com/iron/params/issues/30","id":188823464,"number":30,"title":"Request mutable borrow issue","user":{"login":"mrLSD","id":798086,"avatar_url":"https://avatars.githubusercontent.com/u/798086?v=3","gravatar_id":"","url":"https://api.github.com/users/mrLSD","html_url":"https://github.com/mrLSD","followers_url":"https://api.github.com/users/mrLSD/followers","following_url":"https://api.github.com/users/mrLSD/following{/other_user}","gists_url":"https://api.github.com/users/mrLSD/gists{/gist_id}","starred_url":"https://api.github.com/users/mrLSD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrLSD/subscriptions","organizations_url":"https://api.github.com/users/mrLSD/orgs","repos_url":"https://api.github.com/users/mrLSD/repos","events_url":"https://api.github.com/users/mrLSD/events{/privacy}","received_events_url":"https://api.github.com/users/mrLSD/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-11T18:41:59Z","updated_at":"2016-11-13T12:38:42Z","closed_at":"2016-11-13T00:11:13Z","body":"I tried use both Params and Router:\r\n```\r\nfn handle_user(req: &mut Request) -> IronResult<Response> {\r\n    use params::{Params, Value};\r\n    use router::Router;\r\n    use iron::status;\r\n\r\n    let values = itry!(req.get_ref::<Params>());\r\n    ...\r\n    Ok(Response::with((status::Found, Redirect(url_for!(req, \"home_main\")))))\r\n}\r\n```\r\n\r\nAnd got error:\r\n```\r\n   |\r\n32 |     let values = itry!(req.get_ref::<Params>());\r\n   |                        --- mutable borrow occurs here\r\n...\r\n38 |         return Ok(Response::with((status::Found, Redirect(url_for!(req, \"home_main\")))))\r\n   |                                                                    ^^^ immutable borrow occurs here\r\n...\r\n49 | }\r\n   | - mutable borrow ends here\r\n```\r\n\r\nIt's maybe really simple answer but  I'm confused. Could you help me fix that?"},"comment":{"url":"https://api.github.com/repos/iron/params/issues/comments/260183835","html_url":"https://github.com/iron/params/issues/30#issuecomment-260183835","issue_url":"https://api.github.com/repos/iron/params/issues/30","id":260183835,"user":{"login":"mrLSD","id":798086,"avatar_url":"https://avatars.githubusercontent.com/u/798086?v=3","gravatar_id":"","url":"https://api.github.com/users/mrLSD","html_url":"https://github.com/mrLSD","followers_url":"https://api.github.com/users/mrLSD/followers","following_url":"https://api.github.com/users/mrLSD/following{/other_user}","gists_url":"https://api.github.com/users/mrLSD/gists{/gist_id}","starred_url":"https://api.github.com/users/mrLSD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrLSD/subscriptions","organizations_url":"https://api.github.com/users/mrLSD/orgs","repos_url":"https://api.github.com/users/mrLSD/repos","events_url":"https://api.github.com/users/mrLSD/events{/privacy}","received_events_url":"https://api.github.com/users/mrLSD/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T12:38:42Z","updated_at":"2016-11-13T12:38:42Z","body":"Thanks a lot!\r\nI suggest adding examples code to the specific folder with comments for clear understanding."}}
{"actor":{"display_login":"mrLSD"}}