{"action":"created","comment":{"url":"https://api.github.com/repos/iwburns/id-tree/pulls/comments/92668890","pull_request_review_id":13188925,"id":92668890,"diff_hunk":"@@ -130,6 +130,29 @@ impl<T> Node<T> {\n     }\n \n     ///\n+    /// Exchange the attached data through a new one\n+    ///\n+    /// Returns the old value of data\n+    ///\n+    /// ```\n+    /// use id_tree::Node;\n+    ///\n+    /// let mut node_four: Node<i32> = Node::new(3);\n+    ///\n+    /// // ops! lets correct this\n+    /// let three = node_four.replace_data(4);\n+    ///\n+    /// assert_eq!(node_four.data(), &4);\n+    /// assert_eq!(three, 3);\n+    /// ```\n+    ///\n+    pub fn replace_data(&mut self, mut data: T) -> T\n+    {","path":"src/node.rs","position":21,"original_position":21,"commit_id":"63d663b8189eda06aaf43d140979ca70aaf88d35","original_commit_id":"63d663b8189eda06aaf43d140979ca70aaf88d35","user":{"login":"Drakulix","id":4404502,"avatar_url":"https://avatars.githubusercontent.com/u/4404502?v=3","gravatar_id":"","url":"https://api.github.com/users/Drakulix","html_url":"https://github.com/Drakulix","followers_url":"https://api.github.com/users/Drakulix/followers","following_url":"https://api.github.com/users/Drakulix/following{/other_user}","gists_url":"https://api.github.com/users/Drakulix/gists{/gist_id}","starred_url":"https://api.github.com/users/Drakulix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drakulix/subscriptions","organizations_url":"https://api.github.com/users/Drakulix/orgs","repos_url":"https://api.github.com/users/Drakulix/repos","events_url":"https://api.github.com/users/Drakulix/events{/privacy}","received_events_url":"https://api.github.com/users/Drakulix/received_events","type":"User","site_admin":false},"body":"Sure thing,\r\nyou might be interested in adding a [rustfmt.toml](https://github.com/rust-lang-nursery/rustfmt) to your repo, because this might have happened more then one time to me and contributors could follow your guidelines more easily :)","created_at":"2016-12-15T18:23:58Z","updated_at":"2016-12-15T18:23:58Z","html_url":"https://github.com/iwburns/id-tree/pull/6#discussion_r92668890","pull_request_url":"https://api.github.com/repos/iwburns/id-tree/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/iwburns/id-tree/pulls/comments/92668890"},"html":{"href":"https://github.com/iwburns/id-tree/pull/6#discussion_r92668890"},"pull_request":{"href":"https://api.github.com/repos/iwburns/id-tree/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/iwburns/id-tree/pulls/6","id":98117945,"html_url":"https://github.com/iwburns/id-tree/pull/6","diff_url":"https://github.com/iwburns/id-tree/pull/6.diff","patch_url":"https://github.com/iwburns/id-tree/pull/6.patch","issue_url":"https://api.github.com/repos/iwburns/id-tree/issues/6","number":6,"state":"open","locked":false,"title":"swap and replace implementation","user":{"login":"Drakulix","id":4404502,"avatar_url":"https://avatars.githubusercontent.com/u/4404502?v=3","gravatar_id":"","url":"https://api.github.com/users/Drakulix","html_url":"https://github.com/Drakulix","followers_url":"https://api.github.com/users/Drakulix/followers","following_url":"https://api.github.com/users/Drakulix/following{/other_user}","gists_url":"https://api.github.com/users/Drakulix/gists{/gist_id}","starred_url":"https://api.github.com/users/Drakulix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drakulix/subscriptions","organizations_url":"https://api.github.com/users/Drakulix/orgs","repos_url":"https://api.github.com/users/Drakulix/repos","events_url":"https://api.github.com/users/Drakulix/events{/privacy}","received_events_url":"https://api.github.com/users/Drakulix/received_events","type":"User","site_admin":false},"body":"@iwburns  input on the implementation please.\r\nThis time it is especially important, because there is a `TODO` left in the code.\r\n","created_at":"2016-12-15T09:54:46Z","updated_at":"2016-12-15T18:23:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c9fb2510c545cd53d6e4c28acbdb2c5a8b2ed45","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iwburns/id-tree/pulls/6/commits","review_comments_url":"https://api.github.com/repos/iwburns/id-tree/pulls/6/comments","review_comment_url":"https://api.github.com/repos/iwburns/id-tree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iwburns/id-tree/issues/6/comments","statuses_url":"https://api.github.com/repos/iwburns/id-tree/statuses/63d663b8189eda06aaf43d140979ca70aaf88d35","head":{"label":"Drakulix:feature/swap_replace","ref":"feature/swap_replace","sha":"63d663b8189eda06aaf43d140979ca70aaf88d35","user":{"login":"Drakulix","id":4404502,"avatar_url":"https://avatars.githubusercontent.com/u/4404502?v=3","gravatar_id":"","url":"https://api.github.com/users/Drakulix","html_url":"https://github.com/Drakulix","followers_url":"https://api.github.com/users/Drakulix/followers","following_url":"https://api.github.com/users/Drakulix/following{/other_user}","gists_url":"https://api.github.com/users/Drakulix/gists{/gist_id}","starred_url":"https://api.github.com/users/Drakulix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drakulix/subscriptions","organizations_url":"https://api.github.com/users/Drakulix/orgs","repos_url":"https://api.github.com/users/Drakulix/repos","events_url":"https://api.github.com/users/Drakulix/events{/privacy}","received_events_url":"https://api.github.com/users/Drakulix/received_events","type":"User","site_admin":false},"repo":{"id":76389632,"name":"id-tree","full_name":"Drakulix/id-tree","owner":{"login":"Drakulix","id":4404502,"avatar_url":"https://avatars.githubusercontent.com/u/4404502?v=3","gravatar_id":"","url":"https://api.github.com/users/Drakulix","html_url":"https://github.com/Drakulix","followers_url":"https://api.github.com/users/Drakulix/followers","following_url":"https://api.github.com/users/Drakulix/following{/other_user}","gists_url":"https://api.github.com/users/Drakulix/gists{/gist_id}","starred_url":"https://api.github.com/users/Drakulix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drakulix/subscriptions","organizations_url":"https://api.github.com/users/Drakulix/orgs","repos_url":"https://api.github.com/users/Drakulix/repos","events_url":"https://api.github.com/users/Drakulix/events{/privacy}","received_events_url":"https://api.github.com/users/Drakulix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Drakulix/id-tree","description":null,"fork":true,"url":"https://api.github.com/repos/Drakulix/id-tree","forks_url":"https://api.github.com/repos/Drakulix/id-tree/forks","keys_url":"https://api.github.com/repos/Drakulix/id-tree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Drakulix/id-tree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Drakulix/id-tree/teams","hooks_url":"https://api.github.com/repos/Drakulix/id-tree/hooks","issue_events_url":"https://api.github.com/repos/Drakulix/id-tree/issues/events{/number}","events_url":"https://api.github.com/repos/Drakulix/id-tree/events","assignees_url":"https://api.github.com/repos/Drakulix/id-tree/assignees{/user}","branches_url":"https://api.github.com/repos/Drakulix/id-tree/branches{/branch}","tags_url":"https://api.github.com/repos/Drakulix/id-tree/tags","blobs_url":"https://api.github.com/repos/Drakulix/id-tree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Drakulix/id-tree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Drakulix/id-tree/git/refs{/sha}","trees_url":"https://api.github.com/repos/Drakulix/id-tree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Drakulix/id-tree/statuses/{sha}","languages_url":"https://api.github.com/repos/Drakulix/id-tree/languages","stargazers_url":"https://api.github.com/repos/Drakulix/id-tree/stargazers","contributors_url":"https://api.github.com/repos/Drakulix/id-tree/contributors","subscribers_url":"https://api.github.com/repos/Drakulix/id-tree/subscribers","subscription_url":"https://api.github.com/repos/Drakulix/id-tree/subscription","commits_url":"https://api.github.com/repos/Drakulix/id-tree/commits{/sha}","git_commits_url":"https://api.github.com/repos/Drakulix/id-tree/git/commits{/sha}","comments_url":"https://api.github.com/repos/Drakulix/id-tree/comments{/number}","issue_comment_url":"https://api.github.com/repos/Drakulix/id-tree/issues/comments{/number}","contents_url":"https://api.github.com/repos/Drakulix/id-tree/contents/{+path}","compare_url":"https://api.github.com/repos/Drakulix/id-tree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Drakulix/id-tree/merges","archive_url":"https://api.github.com/repos/Drakulix/id-tree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Drakulix/id-tree/downloads","issues_url":"https://api.github.com/repos/Drakulix/id-tree/issues{/number}","pulls_url":"https://api.github.com/repos/Drakulix/id-tree/pulls{/number}","milestones_url":"https://api.github.com/repos/Drakulix/id-tree/milestones{/number}","notifications_url":"https://api.github.com/repos/Drakulix/id-tree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Drakulix/id-tree/labels{/name}","releases_url":"https://api.github.com/repos/Drakulix/id-tree/releases{/id}","deployments_url":"https://api.github.com/repos/Drakulix/id-tree/deployments","created_at":"2016-12-13T19:05:02Z","updated_at":"2016-12-13T19:05:03Z","pushed_at":"2016-12-15T18:18:57Z","git_url":"git://github.com/Drakulix/id-tree.git","ssh_url":"git@github.com:Drakulix/id-tree.git","clone_url":"https://github.com/Drakulix/id-tree.git","svn_url":"https://github.com/Drakulix/id-tree","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iwburns:master","ref":"master","sha":"f24f8862abe429b0f908f535a495cb247cae58c7","user":{"login":"iwburns","id":6172641,"avatar_url":"https://avatars.githubusercontent.com/u/6172641?v=3","gravatar_id":"","url":"https://api.github.com/users/iwburns","html_url":"https://github.com/iwburns","followers_url":"https://api.github.com/users/iwburns/followers","following_url":"https://api.github.com/users/iwburns/following{/other_user}","gists_url":"https://api.github.com/users/iwburns/gists{/gist_id}","starred_url":"https://api.github.com/users/iwburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwburns/subscriptions","organizations_url":"https://api.github.com/users/iwburns/orgs","repos_url":"https://api.github.com/users/iwburns/repos","events_url":"https://api.github.com/users/iwburns/events{/privacy}","received_events_url":"https://api.github.com/users/iwburns/received_events","type":"User","site_admin":false},"repo":{"id":68147191,"name":"id-tree","full_name":"iwburns/id-tree","owner":{"login":"iwburns","id":6172641,"avatar_url":"https://avatars.githubusercontent.com/u/6172641?v=3","gravatar_id":"","url":"https://api.github.com/users/iwburns","html_url":"https://github.com/iwburns","followers_url":"https://api.github.com/users/iwburns/followers","following_url":"https://api.github.com/users/iwburns/following{/other_user}","gists_url":"https://api.github.com/users/iwburns/gists{/gist_id}","starred_url":"https://api.github.com/users/iwburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwburns/subscriptions","organizations_url":"https://api.github.com/users/iwburns/orgs","repos_url":"https://api.github.com/users/iwburns/repos","events_url":"https://api.github.com/users/iwburns/events{/privacy}","received_events_url":"https://api.github.com/users/iwburns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iwburns/id-tree","description":"A library for creating and modifying Tree structures.","fork":false,"url":"https://api.github.com/repos/iwburns/id-tree","forks_url":"https://api.github.com/repos/iwburns/id-tree/forks","keys_url":"https://api.github.com/repos/iwburns/id-tree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iwburns/id-tree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iwburns/id-tree/teams","hooks_url":"https://api.github.com/repos/iwburns/id-tree/hooks","issue_events_url":"https://api.github.com/repos/iwburns/id-tree/issues/events{/number}","events_url":"https://api.github.com/repos/iwburns/id-tree/events","assignees_url":"https://api.github.com/repos/iwburns/id-tree/assignees{/user}","branches_url":"https://api.github.com/repos/iwburns/id-tree/branches{/branch}","tags_url":"https://api.github.com/repos/iwburns/id-tree/tags","blobs_url":"https://api.github.com/repos/iwburns/id-tree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iwburns/id-tree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iwburns/id-tree/git/refs{/sha}","trees_url":"https://api.github.com/repos/iwburns/id-tree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iwburns/id-tree/statuses/{sha}","languages_url":"https://api.github.com/repos/iwburns/id-tree/languages","stargazers_url":"https://api.github.com/repos/iwburns/id-tree/stargazers","contributors_url":"https://api.github.com/repos/iwburns/id-tree/contributors","subscribers_url":"https://api.github.com/repos/iwburns/id-tree/subscribers","subscription_url":"https://api.github.com/repos/iwburns/id-tree/subscription","commits_url":"https://api.github.com/repos/iwburns/id-tree/commits{/sha}","git_commits_url":"https://api.github.com/repos/iwburns/id-tree/git/commits{/sha}","comments_url":"https://api.github.com/repos/iwburns/id-tree/comments{/number}","issue_comment_url":"https://api.github.com/repos/iwburns/id-tree/issues/comments{/number}","contents_url":"https://api.github.com/repos/iwburns/id-tree/contents/{+path}","compare_url":"https://api.github.com/repos/iwburns/id-tree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iwburns/id-tree/merges","archive_url":"https://api.github.com/repos/iwburns/id-tree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iwburns/id-tree/downloads","issues_url":"https://api.github.com/repos/iwburns/id-tree/issues{/number}","pulls_url":"https://api.github.com/repos/iwburns/id-tree/pulls{/number}","milestones_url":"https://api.github.com/repos/iwburns/id-tree/milestones{/number}","notifications_url":"https://api.github.com/repos/iwburns/id-tree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iwburns/id-tree/labels{/name}","releases_url":"https://api.github.com/repos/iwburns/id-tree/releases{/id}","deployments_url":"https://api.github.com/repos/iwburns/id-tree/deployments","created_at":"2016-09-13T21:00:51Z","updated_at":"2016-12-15T02:47:52Z","pushed_at":"2016-12-15T18:11:32Z","git_url":"git://github.com/iwburns/id-tree.git","ssh_url":"git@github.com:iwburns/id-tree.git","clone_url":"https://github.com/iwburns/id-tree.git","svn_url":"https://github.com/iwburns/id-tree","homepage":"","size":65,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iwburns/id-tree/pulls/6"},"html":{"href":"https://github.com/iwburns/id-tree/pull/6"},"issue":{"href":"https://api.github.com/repos/iwburns/id-tree/issues/6"},"comments":{"href":"https://api.github.com/repos/iwburns/id-tree/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/iwburns/id-tree/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/iwburns/id-tree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iwburns/id-tree/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/iwburns/id-tree/statuses/63d663b8189eda06aaf43d140979ca70aaf88d35"}}}}
{"actor":{"display_login":"Drakulix"}}