{"action":"created","comment":{"url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/comments/107538446","pull_request_review_id":28517945,"id":107538446,"diff_hunk":"@@ -9,51 +10,169 @@ pub struct Queue {\n     pub left: c_int,\n }\n \n+impl Default for Queue {\n+    fn default() -> Self {\n+        let mut queue = Queue{elements: ptr::null_mut(), count: 0, alloc: ptr::null_mut(), left: 0};\n+        unsafe {queue_init(&mut queue)};\n+        queue\n+    }\n+}\n+\n+impl Drop for Queue {\n+    fn drop(&mut self) {\n+        unsafe {queue_free(self)}\n+    }\n+}\n+\n+impl AsRef<[i32]> for Queue {\n+    fn as_ref(&self) -> &[i32] {\n+        unsafe {slice::from_raw_parts(self.elements, self.count as usize)}\n+    }\n+}\n+\n+impl AsMut<[i32]> for Queue {\n+    fn as_mut(&mut self) -> &mut [i32] {\n+        unsafe {slice::from_raw_parts_mut(self.elements, self.count as usize)}\n+    }\n+}\n+\n+impl fmt::Debug for Queue {\n+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {\n+        write!(f, \"Queue {{ elements: {:?}, elements_ptr: {:?}, count: {:?}, alloc_ptr: {:?}, left: {}}}\",\n+               self.as_ref(),\n+               self.elements,\n+               self.count,\n+               self.alloc,\n+               self.left)\n+    }\n+}\n+\n+\n extern \"C\" {\n     pub fn queue_init(q: *mut Queue);\n     pub fn queue_init_buffer(q: *mut Queue, buf: *mut Id, size: c_int);\n-    pub fn queue_init_clone(t: *mut Queue, s: *mut Queue); // FIXME: source is const?\n+    pub fn queue_init_clone(t: *mut Queue, s: *const Queue); // FIXME: source is const? - Yes","path":"libsolv-sys/src/queue.rs","position":52,"original_position":52,"commit_id":"0593a7b7ee2c1143c0ea98ad2f48f3d01f758657","original_commit_id":"0593a7b7ee2c1143c0ea98ad2f48f3d01f758657","user":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars2.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"body":"change back to mut and drop comment pls","created_at":"2017-03-22T21:32:00Z","updated_at":"2017-03-22T21:32:00Z","html_url":"https://github.com/ignatenkobrain/libsolv-rs/pull/1#discussion_r107538446","pull_request_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/comments/107538446"},"html":{"href":"https://github.com/ignatenkobrain/libsolv-rs/pull/1#discussion_r107538446"},"pull_request":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1","id":111657753,"html_url":"https://github.com/ignatenkobrain/libsolv-rs/pull/1","diff_url":"https://github.com/ignatenkobrain/libsolv-rs/pull/1.diff","patch_url":"https://github.com/ignatenkobrain/libsolv-rs/pull/1.patch","issue_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/issues/1","number":1,"state":"open","locked":false,"title":"WIP: Added static inline functions.","user":{"login":"ambaxter","id":15006780,"avatar_url":"https://avatars2.githubusercontent.com/u/15006780?v=3","gravatar_id":"","url":"https://api.github.com/users/ambaxter","html_url":"https://github.com/ambaxter","followers_url":"https://api.github.com/users/ambaxter/followers","following_url":"https://api.github.com/users/ambaxter/following{/other_user}","gists_url":"https://api.github.com/users/ambaxter/gists{/gist_id}","starred_url":"https://api.github.com/users/ambaxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambaxter/subscriptions","organizations_url":"https://api.github.com/users/ambaxter/orgs","repos_url":"https://api.github.com/users/ambaxter/repos","events_url":"https://api.github.com/users/ambaxter/events{/privacy}","received_events_url":"https://api.github.com/users/ambaxter/received_events","type":"User","site_admin":false},"body":"Needs testing and review","created_at":"2017-03-20T21:45:13Z","updated_at":"2017-03-22T21:32:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5ddcc8821370d73fec2ed16afaf2a1988404af7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/issues/1/comments","statuses_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/statuses/0593a7b7ee2c1143c0ea98ad2f48f3d01f758657","head":{"label":"ambaxter:master","ref":"master","sha":"0593a7b7ee2c1143c0ea98ad2f48f3d01f758657","user":{"login":"ambaxter","id":15006780,"avatar_url":"https://avatars2.githubusercontent.com/u/15006780?v=3","gravatar_id":"","url":"https://api.github.com/users/ambaxter","html_url":"https://github.com/ambaxter","followers_url":"https://api.github.com/users/ambaxter/followers","following_url":"https://api.github.com/users/ambaxter/following{/other_user}","gists_url":"https://api.github.com/users/ambaxter/gists{/gist_id}","starred_url":"https://api.github.com/users/ambaxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambaxter/subscriptions","organizations_url":"https://api.github.com/users/ambaxter/orgs","repos_url":"https://api.github.com/users/ambaxter/repos","events_url":"https://api.github.com/users/ambaxter/events{/privacy}","received_events_url":"https://api.github.com/users/ambaxter/received_events","type":"User","site_admin":false},"repo":{"id":85586850,"name":"libsolv-rs","full_name":"ambaxter/libsolv-rs","owner":{"login":"ambaxter","id":15006780,"avatar_url":"https://avatars2.githubusercontent.com/u/15006780?v=3","gravatar_id":"","url":"https://api.github.com/users/ambaxter","html_url":"https://github.com/ambaxter","followers_url":"https://api.github.com/users/ambaxter/followers","following_url":"https://api.github.com/users/ambaxter/following{/other_user}","gists_url":"https://api.github.com/users/ambaxter/gists{/gist_id}","starred_url":"https://api.github.com/users/ambaxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambaxter/subscriptions","organizations_url":"https://api.github.com/users/ambaxter/orgs","repos_url":"https://api.github.com/users/ambaxter/repos","events_url":"https://api.github.com/users/ambaxter/events{/privacy}","received_events_url":"https://api.github.com/users/ambaxter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ambaxter/libsolv-rs","description":null,"fork":true,"url":"https://api.github.com/repos/ambaxter/libsolv-rs","forks_url":"https://api.github.com/repos/ambaxter/libsolv-rs/forks","keys_url":"https://api.github.com/repos/ambaxter/libsolv-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ambaxter/libsolv-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ambaxter/libsolv-rs/teams","hooks_url":"https://api.github.com/repos/ambaxter/libsolv-rs/hooks","issue_events_url":"https://api.github.com/repos/ambaxter/libsolv-rs/issues/events{/number}","events_url":"https://api.github.com/repos/ambaxter/libsolv-rs/events","assignees_url":"https://api.github.com/repos/ambaxter/libsolv-rs/assignees{/user}","branches_url":"https://api.github.com/repos/ambaxter/libsolv-rs/branches{/branch}","tags_url":"https://api.github.com/repos/ambaxter/libsolv-rs/tags","blobs_url":"https://api.github.com/repos/ambaxter/libsolv-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ambaxter/libsolv-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ambaxter/libsolv-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ambaxter/libsolv-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ambaxter/libsolv-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/ambaxter/libsolv-rs/languages","stargazers_url":"https://api.github.com/repos/ambaxter/libsolv-rs/stargazers","contributors_url":"https://api.github.com/repos/ambaxter/libsolv-rs/contributors","subscribers_url":"https://api.github.com/repos/ambaxter/libsolv-rs/subscribers","subscription_url":"https://api.github.com/repos/ambaxter/libsolv-rs/subscription","commits_url":"https://api.github.com/repos/ambaxter/libsolv-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ambaxter/libsolv-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ambaxter/libsolv-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ambaxter/libsolv-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ambaxter/libsolv-rs/contents/{+path}","compare_url":"https://api.github.com/repos/ambaxter/libsolv-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ambaxter/libsolv-rs/merges","archive_url":"https://api.github.com/repos/ambaxter/libsolv-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ambaxter/libsolv-rs/downloads","issues_url":"https://api.github.com/repos/ambaxter/libsolv-rs/issues{/number}","pulls_url":"https://api.github.com/repos/ambaxter/libsolv-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/ambaxter/libsolv-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/ambaxter/libsolv-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ambaxter/libsolv-rs/labels{/name}","releases_url":"https://api.github.com/repos/ambaxter/libsolv-rs/releases{/id}","deployments_url":"https://api.github.com/repos/ambaxter/libsolv-rs/deployments","created_at":"2017-03-20T14:29:41Z","updated_at":"2017-03-20T14:29:43Z","pushed_at":"2017-03-22T19:28:21Z","git_url":"git://github.com/ambaxter/libsolv-rs.git","ssh_url":"git@github.com:ambaxter/libsolv-rs.git","clone_url":"https://github.com/ambaxter/libsolv-rs.git","svn_url":"https://github.com/ambaxter/libsolv-rs","homepage":null,"size":7,"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":"ignatenkobrain:master","ref":"master","sha":"26309f0bd1d9ace531b6a1ec1ca9d10965652140","user":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars2.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"repo":{"id":85474489,"name":"libsolv-rs","full_name":"ignatenkobrain/libsolv-rs","owner":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars2.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ignatenkobrain/libsolv-rs","description":null,"fork":false,"url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs","forks_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/forks","keys_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/teams","hooks_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/hooks","issue_events_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/issues/events{/number}","events_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/events","assignees_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/assignees{/user}","branches_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/branches{/branch}","tags_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/tags","blobs_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/languages","stargazers_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/stargazers","contributors_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/contributors","subscribers_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/subscribers","subscription_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/subscription","commits_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/contents/{+path}","compare_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/merges","archive_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/downloads","issues_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/issues{/number}","pulls_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/labels{/name}","releases_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/releases{/id}","deployments_url":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/deployments","created_at":"2017-03-19T12:33:03Z","updated_at":"2017-03-19T12:36:00Z","pushed_at":"2017-03-22T19:28:23Z","git_url":"git://github.com/ignatenkobrain/libsolv-rs.git","ssh_url":"git@github.com:ignatenkobrain/libsolv-rs.git","clone_url":"https://github.com/ignatenkobrain/libsolv-rs.git","svn_url":"https://github.com/ignatenkobrain/libsolv-rs","homepage":null,"size":3,"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":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1"},"html":{"href":"https://github.com/ignatenkobrain/libsolv-rs/pull/1"},"issue":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/issues/1"},"comments":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ignatenkobrain/libsolv-rs/statuses/0593a7b7ee2c1143c0ea98ad2f48f3d01f758657"}}}}
{"actor":{"display_login":"ignatenkobrain"}}