{"action":"created","issue":{"url":"https://api.github.com/repos/White-Oak/qml-rust/issues/16","repository_url":"https://api.github.com/repos/White-Oak/qml-rust","labels_url":"https://api.github.com/repos/White-Oak/qml-rust/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/White-Oak/qml-rust/issues/16/comments","events_url":"https://api.github.com/repos/White-Oak/qml-rust/issues/16/events","html_url":"https://github.com/White-Oak/qml-rust/issues/16","id":183063324,"number":16,"title":"add support for Q_LISTMODEL with only one member","user":{"login":"berlineddy","id":896504,"avatar_url":"https://avatars.githubusercontent.com/u/896504?v=3","gravatar_id":"","url":"https://api.github.com/users/berlineddy","html_url":"https://github.com/berlineddy","followers_url":"https://api.github.com/users/berlineddy/followers","following_url":"https://api.github.com/users/berlineddy/following{/other_user}","gists_url":"https://api.github.com/users/berlineddy/gists{/gist_id}","starred_url":"https://api.github.com/users/berlineddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berlineddy/subscriptions","organizations_url":"https://api.github.com/users/berlineddy/orgs","repos_url":"https://api.github.com/users/berlineddy/repos","events_url":"https://api.github.com/users/berlineddy/events{/privacy}","received_events_url":"https://api.github.com/users/berlineddy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/White-Oak/qml-rust/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"White-Oak","id":2813216,"avatar_url":"https://avatars.githubusercontent.com/u/2813216?v=3","gravatar_id":"","url":"https://api.github.com/users/White-Oak","html_url":"https://github.com/White-Oak","followers_url":"https://api.github.com/users/White-Oak/followers","following_url":"https://api.github.com/users/White-Oak/following{/other_user}","gists_url":"https://api.github.com/users/White-Oak/gists{/gist_id}","starred_url":"https://api.github.com/users/White-Oak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/White-Oak/subscriptions","organizations_url":"https://api.github.com/users/White-Oak/orgs","repos_url":"https://api.github.com/users/White-Oak/repos","events_url":"https://api.github.com/users/White-Oak/events{/privacy}","received_events_url":"https://api.github.com/users/White-Oak/received_events","type":"User","site_admin":false},"assignees":[{"login":"White-Oak","id":2813216,"avatar_url":"https://avatars.githubusercontent.com/u/2813216?v=3","gravatar_id":"","url":"https://api.github.com/users/White-Oak","html_url":"https://github.com/White-Oak","followers_url":"https://api.github.com/users/White-Oak/followers","following_url":"https://api.github.com/users/White-Oak/following{/other_user}","gists_url":"https://api.github.com/users/White-Oak/gists{/gist_id}","starred_url":"https://api.github.com/users/White-Oak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/White-Oak/subscriptions","organizations_url":"https://api.github.com/users/White-Oak/orgs","repos_url":"https://api.github.com/users/White-Oak/repos","events_url":"https://api.github.com/users/White-Oak/events{/privacy}","received_events_url":"https://api.github.com/users/White-Oak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-10-14T14:23:43Z","updated_at":"2016-10-17T18:09:57Z","closed_at":null,"body":"currently it is not possible to create a  Q_LISTMODEL! with only one member:\r\n\r\n    Q_LISTMODEL!{\r\n        pub QTestModel {\r\n            name: String,\r\n        }\r\n    }\r\n\r\n\r\n```\r\nerror: expected one of `,` or `@`, found `)`\r\n  --> <qml macros>:22:26\r\n   |\r\n22 | | ( $ ( $ rolename ) , * ) | {\r\n   |                          ^\r\n\r\nerror: expected pattern, found `{`\r\n  --> <qml macros>:22:30\r\n   |\r\n22 | | ( $ ( $ rolename ) , * ) | {\r\n   |                              ^\r\n\r\nerror: expected expression, found statement (`let`)\r\n  --> <qml macros>:23:1\r\n   |\r\n23 | let mut vec = Vec :: new (  ) ; $ ( vec . push ( $ rolename . into (  ) ) ; )\r\n   | ^^^\r\n   |\r\n   = note: variable declaration using `let` is a statement\r\n\r\nerror: expected one of `,`, `->`, `.`, `<`, `?`, `break`, `continue`, `for`, `if`, `loop`, `match`, `move`, `return`, `unsafe`, `while`, or an operator, found `let`\r\n  --> <qml macros>:23:1\r\n   |\r\n23 | let mut vec = Vec :: new (  ) ; $ ( vec . push ( $ rolename . into (  ) ) ; )\r\n   | ^^^\r\n\r\nerror: expected one of `->`, `.`, `;`, `<`, `?`, `break`, `continue`, `for`, `if`, `loop`, `match`, `move`, `return`, `unsafe`, `while`, `}`, or an operator, found `let`\r\n  --> <qml macros>:23:1\r\n   |\r\n23 | let mut vec = Vec :: new (  ) ; $ ( vec . push ( $ rolename . into (  ) ) ; )\r\n   | ^^^\r\n\r\nerror: expected one of `const`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `)`\r\n  --> <qml macros>:24:9\r\n   |\r\n24 | * vec } ) . collect :: < Vec < Vec < QVariant >> > (  ) ) }\r\n   |         ^\r\n\r\nerror: Could not compile `z-machine`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```"},"comment":{"url":"https://api.github.com/repos/White-Oak/qml-rust/issues/comments/254286845","html_url":"https://github.com/White-Oak/qml-rust/issues/16#issuecomment-254286845","issue_url":"https://api.github.com/repos/White-Oak/qml-rust/issues/16","id":254286845,"user":{"login":"White-Oak","id":2813216,"avatar_url":"https://avatars.githubusercontent.com/u/2813216?v=3","gravatar_id":"","url":"https://api.github.com/users/White-Oak","html_url":"https://github.com/White-Oak","followers_url":"https://api.github.com/users/White-Oak/followers","following_url":"https://api.github.com/users/White-Oak/following{/other_user}","gists_url":"https://api.github.com/users/White-Oak/gists{/gist_id}","starred_url":"https://api.github.com/users/White-Oak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/White-Oak/subscriptions","organizations_url":"https://api.github.com/users/White-Oak/orgs","repos_url":"https://api.github.com/users/White-Oak/repos","events_url":"https://api.github.com/users/White-Oak/events{/privacy}","received_events_url":"https://api.github.com/users/White-Oak/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T18:09:57Z","updated_at":"2016-10-17T18:09:57Z","body":"Ah, that's because Rust can't unserstand if (expr) is a braced expression or a tuple."}}
{"actor":{"display_login":"White-Oak"}}