{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/22190","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/22190/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/22190/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/22190/events","html_url":"https://github.com/rust-lang/rust/issues/22190","id":57369395,"number":22190,"title":"It's not possible to open a file without invoking allocations for the file name","user":{"login":"tbu-","id":6666593,"avatar_url":"https://avatars.githubusercontent.com/u/6666593?v=3","gravatar_id":"","url":"https://api.github.com/users/tbu-","html_url":"https://github.com/tbu-","followers_url":"https://api.github.com/users/tbu-/followers","following_url":"https://api.github.com/users/tbu-/following{/other_user}","gists_url":"https://api.github.com/users/tbu-/gists{/gist_id}","starred_url":"https://api.github.com/users/tbu-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbu-/subscriptions","organizations_url":"https://api.github.com/users/tbu-/orgs","repos_url":"https://api.github.com/users/tbu-/repos","events_url":"https://api.github.com/users/tbu-/events{/privacy}","received_events_url":"https://api.github.com/users/tbu-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-11T20:03:45Z","updated_at":"2015-02-11T21:40:23Z","closed_at":null,"body":"`File::open` takes a `Path` object as reference, although it only clones it afterwards.\r\n\r\nIt's also impossible to re-use the allocation for the file path, because it's only dropped at the end."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/73970536","html_url":"https://github.com/rust-lang/rust/issues/22190#issuecomment-73970536","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/22190","id":73970536,"user":{"login":"tbu-","id":6666593,"avatar_url":"https://avatars.githubusercontent.com/u/6666593?v=3","gravatar_id":"","url":"https://api.github.com/users/tbu-","html_url":"https://github.com/tbu-","followers_url":"https://api.github.com/users/tbu-/followers","following_url":"https://api.github.com/users/tbu-/following{/other_user}","gists_url":"https://api.github.com/users/tbu-/gists{/gist_id}","starred_url":"https://api.github.com/users/tbu-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbu-/subscriptions","organizations_url":"https://api.github.com/users/tbu-/orgs","repos_url":"https://api.github.com/users/tbu-/repos","events_url":"https://api.github.com/users/tbu-/events{/privacy}","received_events_url":"https://api.github.com/users/tbu-/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T21:40:23Z","updated_at":"2015-02-11T21:40:23Z","body":"That's true.. Maybe we can avoid the double-allocation?"}}