{"action":"opened","issue":{"url":"https://api.github.com/repos/wlentz/scan_fmt/issues/1","labels_url":"https://api.github.com/repos/wlentz/scan_fmt/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/wlentz/scan_fmt/issues/1/comments","events_url":"https://api.github.com/repos/wlentz/scan_fmt/issues/1/events","html_url":"https://github.com/wlentz/scan_fmt/issues/1","id":99023525,"number":1,"title":"{d} fails to parse “+42”","user":{"login":"Cigaes","id":5101943,"avatar_url":"https://avatars.githubusercontent.com/u/5101943?v=3","gravatar_id":"","url":"https://api.github.com/users/Cigaes","html_url":"https://github.com/Cigaes","followers_url":"https://api.github.com/users/Cigaes/followers","following_url":"https://api.github.com/users/Cigaes/following{/other_user}","gists_url":"https://api.github.com/users/Cigaes/gists{/gist_id}","starred_url":"https://api.github.com/users/Cigaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cigaes/subscriptions","organizations_url":"https://api.github.com/users/Cigaes/orgs","repos_url":"https://api.github.com/users/Cigaes/repos","events_url":"https://api.github.com/users/Cigaes/events{/privacy}","received_events_url":"https://api.github.com/users/Cigaes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T17:54:52Z","updated_at":"2015-08-04T17:54:52Z","closed_at":null,"body":"```\r\n    let a = scan_fmt!(\"+42\", \"{d}\", i32);\r\n    assert_eq!( a, Some(42) );\r\n```\r\n\r\nThis fails because Rust's string-to-integer conversion function ```parse<iXX>``` does not recognize leading ```+```, only ```-```. The scanner in this crate, OTOH, ```scan_dec10()```, clearly accepts ```+```. This was confirmed in [this forum message](https://users.rust-lang.org/t/leading-plus-sign-on-integers/2320).\r\n\r\nI suggest to either document this unusual behaviour very visibly or, even better, to work around that misfeature."}}